You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/03/14 12:52:42 UTC

[incubator-nuttx-apps] branch master updated: apps/wamr: Add wamr memory Kconfig

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e7a2bc  apps/wamr: Add wamr memory Kconfig
1e7a2bc is described below

commit 1e7a2bc00907f43c7df61e4c761e5749fc1563a3
Author: zhouliang3 <zh...@xiaomi.com>
AuthorDate: Tue Nov 9 14:58:42 2021 +0800

    apps/wamr: Add wamr memory Kconfig
    
    Signed-off-by: zhouliang3 <zh...@xiaomi.com>
---
 interpreters/wamr/Kconfig  | 37 ++++++++++++++++++++++++++++++++++++-
 interpreters/wamr/Makefile |  2 ++
 2 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/interpreters/wamr/Kconfig b/interpreters/wamr/Kconfig
index bf2f308..b7a3a5b 100644
--- a/interpreters/wamr/Kconfig
+++ b/interpreters/wamr/Kconfig
@@ -15,6 +15,12 @@ config INTERPRETERS_WAMR_VERSION
 	---help---
 	Version 09-29-2020 and later (include main) supported.
 
+config INTERPRETERS_IWASM_TASK
+	bool "Webassembly iwasm task"
+	default y
+
+if INTERPRETERS_IWASM_TASK
+
 config INTERPRETERS_WAMR_PRIORITY
 	int "Webassembly Micro Runtime priority"
 	default 100
@@ -23,13 +29,26 @@ config INTERPRETERS_WAMR_STACKSIZE
 	int "Webassembly Micro Runtime stack size"
 	default 8192
 
+endif
+
 config INTERPRETERS_WAMR_AOT
 	bool "Enable AOT"
 	default n
 
+choice
+	prompt "Enable interpreter"
+	default INTERPRETERS_NONE
+
 config INTERPRETERS_WAMR_FAST
 	bool "Enable fast interpreter"
-	default n
+
+config INTERPRETERS_WAMR_CLASSIC
+	bool "Enable classic interpreter"
+
+config INTERPRETERS_NONE
+	bool "Disable interpreter"
+
+endchoice
 
 config INTERPRETERS_WAMR_LOG
 	bool "Enable log"
@@ -57,6 +76,22 @@ config INTERPRETERS_WAMR_LIB_PTHREAD
 	bool "Enable lib pthread"
 	default n
 
+config INTERPRETERS_WAMR_SHARED_MEMORY
+	bool "Enable shared memory"
+	default n
+
+config INTERPRETERS_WAMR_BULK_MEMORY
+	bool "Enable bluk memory"
+	default n
+
+config INTERPRETERS_WAMR_MEMORY_PROFILING
+	bool "Enable memory profiling"
+	default n
+
+config INTERPRETERS_WAMR_MEMORY_TRACING
+	bool "Enable memory tracing"
+	default n
+
 config INTERPRETERS_WAMR_DISABLE_HW_BOUND_CHECK
 	bool "Disable hardware bound check"
 	default n
diff --git a/interpreters/wamr/Makefile b/interpreters/wamr/Makefile
index 6747645..95eeb9f 100644
--- a/interpreters/wamr/Makefile
+++ b/interpreters/wamr/Makefile
@@ -40,12 +40,14 @@ WAMR_URL      = $(WAMR_URL_BASE)/$(WAMR_TARBALL)
 
 VPATH += $(WAMR_UNPACK)/product-mini/platforms/nuttx
 
+ifeq ($(CONFIG_INTERPRETERS_IWASM_TASK),y)
 MAINSRC = main.c
 
 PROGNAME  = iwasm
 PRIORITY  = $(CONFIG_INTERPRETERS_WAMR_PRIORITY)
 STACKSIZE = $(CONFIG_INTERPRETERS_WAMR_STACKSIZE)
 MODULE    = $(CONFIG_INTERPRETERS_WAMR)
+endif
 
 $(WAMR_TARBALL):
 	$(Q) echo "Downloading $(WAMR_TARBALL)"