apps/wamr: Add wamr memory Kconfig

Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
This commit is contained in:
zhouliang3 2021-11-09 14:58:42 +08:00 committed by Xiang Xiao
parent c53dca512e
commit 1e7a2bc009
2 changed files with 38 additions and 1 deletions
interpreters/wamr

View File

@ -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

View File

@ -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)"