mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
wamr: Add external module registration mechanism
This patch adds module registration mechanism for WAMR runtime. To register a module, these steps are required: 1. Include Module.mk in your module's Makefile 2. Define WAMR_MODULE_NAME as the module name 3. Implement bool wamr_module_WAMR_MODULE_NAME_register(void) function in your module's source file 4. Enable INTERPRETERS_WAMR_EXTERNAL_MODULE_REGISTRY in menuconfig Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
df4cdbaae9
commit
9320597c00
9 changed files with 280 additions and 2 deletions
|
|
@ -30,6 +30,7 @@ if(CONFIG_APPS_DIR)
|
|||
# add apps cmake modules
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
||||
include(nuttx_add_luamod)
|
||||
include(nuttx_add_wamrmod)
|
||||
nuttx_add_library(apps)
|
||||
if(NOT EXISTS {NUTTX_APPS_BINDIR}/dummy.c)
|
||||
file(TOUCH ${NUTTX_APPS_BINDIR}/dummy.c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue