apps/wamr: Add wamr memory Kconfig
Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
This commit is contained in:
parent
c53dca512e
commit
1e7a2bc009
@ -15,6 +15,12 @@ config INTERPRETERS_WAMR_VERSION
|
|||||||
---help---
|
---help---
|
||||||
Version 09-29-2020 and later (include main) supported.
|
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
|
config INTERPRETERS_WAMR_PRIORITY
|
||||||
int "Webassembly Micro Runtime priority"
|
int "Webassembly Micro Runtime priority"
|
||||||
default 100
|
default 100
|
||||||
@ -23,13 +29,26 @@ config INTERPRETERS_WAMR_STACKSIZE
|
|||||||
int "Webassembly Micro Runtime stack size"
|
int "Webassembly Micro Runtime stack size"
|
||||||
default 8192
|
default 8192
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
config INTERPRETERS_WAMR_AOT
|
config INTERPRETERS_WAMR_AOT
|
||||||
bool "Enable AOT"
|
bool "Enable AOT"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Enable interpreter"
|
||||||
|
default INTERPRETERS_NONE
|
||||||
|
|
||||||
config INTERPRETERS_WAMR_FAST
|
config INTERPRETERS_WAMR_FAST
|
||||||
bool "Enable fast interpreter"
|
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
|
config INTERPRETERS_WAMR_LOG
|
||||||
bool "Enable log"
|
bool "Enable log"
|
||||||
@ -57,6 +76,22 @@ config INTERPRETERS_WAMR_LIB_PTHREAD
|
|||||||
bool "Enable lib pthread"
|
bool "Enable lib pthread"
|
||||||
default n
|
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
|
config INTERPRETERS_WAMR_DISABLE_HW_BOUND_CHECK
|
||||||
bool "Disable hardware bound check"
|
bool "Disable hardware bound check"
|
||||||
default n
|
default n
|
||||||
|
@ -40,12 +40,14 @@ WAMR_URL = $(WAMR_URL_BASE)/$(WAMR_TARBALL)
|
|||||||
|
|
||||||
VPATH += $(WAMR_UNPACK)/product-mini/platforms/nuttx
|
VPATH += $(WAMR_UNPACK)/product-mini/platforms/nuttx
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_INTERPRETERS_IWASM_TASK),y)
|
||||||
MAINSRC = main.c
|
MAINSRC = main.c
|
||||||
|
|
||||||
PROGNAME = iwasm
|
PROGNAME = iwasm
|
||||||
PRIORITY = $(CONFIG_INTERPRETERS_WAMR_PRIORITY)
|
PRIORITY = $(CONFIG_INTERPRETERS_WAMR_PRIORITY)
|
||||||
STACKSIZE = $(CONFIG_INTERPRETERS_WAMR_STACKSIZE)
|
STACKSIZE = $(CONFIG_INTERPRETERS_WAMR_STACKSIZE)
|
||||||
MODULE = $(CONFIG_INTERPRETERS_WAMR)
|
MODULE = $(CONFIG_INTERPRETERS_WAMR)
|
||||||
|
endif
|
||||||
|
|
||||||
$(WAMR_TARBALL):
|
$(WAMR_TARBALL):
|
||||||
$(Q) echo "Downloading $(WAMR_TARBALL)"
|
$(Q) echo "Downloading $(WAMR_TARBALL)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user