From 6d07d64de8625dd8fdcf58e66c2e016c95dfb138 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 16 Feb 2024 18:15:10 +0900 Subject: [PATCH] ports/unix/variants/wasi/mpconfigvariant.mk: Disable several things. Signed-off-by: YAMAMOTO Takashi --- ports/unix/variants/wasi/mpconfigvariant.mk | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/ports/unix/variants/wasi/mpconfigvariant.mk b/ports/unix/variants/wasi/mpconfigvariant.mk index c91db1aa10..b70151b9c4 100644 --- a/ports/unix/variants/wasi/mpconfigvariant.mk +++ b/ports/unix/variants/wasi/mpconfigvariant.mk @@ -1,3 +1,28 @@ # This is the default variant when you `make` the Unix port. FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py + +# WASI doesn't have FFI +MICROPY_PY_FFI=0 + +# When threading is enabled, micropython GC uses signals, which is +# not available on WASI. +MICROPY_PY_THREAD=0 + +# Disable for now because network support is limited in WASI. +MICROPY_PY_SOCKET=0 +MICROPY_PY_SSL=0 + +# ../../lib/berkeley-db-1.xx/PORT/include/db.h:40:10: +# fatal error: 'sys/cdefs.h' file not found +MICROPY_PY_BTREE=0 + +# WASI doesn't have termios +MICROPY_PY_TERMIOS=0 +MICROPY_USE_READLINE=0 + +# The following things might just work as they are. +# Disabled for now because I'm not interested in them. +MICROPY_VFS_FAT=0 +MICROPY_VFS_LFS1=0 +MICROPY_VFS_LFS2=0