From 1e7a2bc00907f43c7df61e4c761e5749fc1563a3 Mon Sep 17 00:00:00 2001 From: zhouliang3 Date: Tue, 9 Nov 2021 14:58:42 +0800 Subject: [PATCH] apps/wamr: Add wamr memory Kconfig Signed-off-by: zhouliang3 --- 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 bf2f30886..b7a3a5b2a 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 67476450a..95eeb9f88 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)"