Commit Graph

1218 Commits

Author SHA1 Message Date
zhengyu16 0e866add56 fs: rename PSEUDOFS_SOFTLINKS to FS_LINKS
Signed-off-by: zhengyu16 <zhengyu16@xiaomi.com>
2026-04-20 15:20:16 +08:00
yangkun27 11beba021d interpreters/wamr:modify spelling error
Signed-off-by: yangkun27 <yangkun27@xiaomi.com>
2026-04-20 15:19:43 +08:00
Huang Qi 838d55a7f4 interpreters/wamr: Disable mremap detection for NuttX
NuttX does not support mremap even if sys/mman.h is present.
* Explicitly set MREMAP_EXISTS to 0 in CMake to avoid incorrect detection
* Reference platform_api_posix.cmake for rationale

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:19:28 +08:00
Huang Qi 8c4113cb9d wamr: Enhance WAMR_AOT_COMPILE macro for better clarity
Refactor the WAMR_AOT_COMPILE macro to improve readability and
clarity in its parameters and functionality.

* Added detailed comments explaining parameters and behavior
* Simplified the logic for AOT and XIP compilation
* Improved maintainability of the build process

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:19:21 +08:00
Huang Qi 119f1bcbc8 wamr: Enhance module registration to handle multiple modules
Summary:
- Updated the module registration process in `interpreters/wamr/Module.mk` to support multiple modules
- Introduced a new macro `WAMR_MODULE_TARGET` to create individual build targets for each module
- Replaced the single registration call with a `foreach` loop that iterates over all modules specified in `WAMR_MODULE_NAME`
- Each module is registered individually with its own registration function

Impact:
- No functional changes when only a single module is registered
- Enhances the modularity and scalability of the WAMR (WebAssembly Micro Runtime) build system
- Simplifies the addition of new modules by automatically creating necessary build targets
- Reduces the risk of errors when adding new modules by centralizing the registration logic

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:19:21 +08:00
Huang Qi cd2b52c820 tools: Update Wasm.mk to use '%' instead of '#'
Changed the separator in the destination path from '#' to '%'
to improve compatibility with file naming conventions, '#' in file name may lead to file name parse error in Makefile.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:19:21 +08:00
haopengxiang 116eb7dd75 apps/interpreters/python: add independent repo cpython in ignore list
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2026-04-20 15:19:18 +08:00
Huang Qi ebb685c40f wamr: Map armv7a/thumbv7a to armv7/thumbv7 for wamrc
Summary:
- Added explicit mapping of thumbv7a architecture to thumbv7 in the WAMR toolchain definitions
- WAMR's AOT compiler uses armv7/thumbv7 as the target architecture for all ARMv7-A processors
- This includes Cortex-A series processors like Cortex-A9 which use the armv7a/thumbv7a ISA

Impact:
- Fixes AOT compilation for ARM Cortex-A processors using thumbv7a architecture
- Maintains compatibility with WAMR's expected target architecture naming
- Ensures consistent architecture targeting across all ARMv7-A processors
- No impact on other architectures or build configurations

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:19:16 +08:00
qinliansong 64048835e2 Fix the QuickJS memory leak tracing macros for free, dup, and constructor functions.
Fix the QuickJS memory leak tracing macros for free, dup, and constructor functions.
test by qemu
Signed-off-by: qinliansong <qinliansong@xiaomi.com>
2026-04-20 15:19:13 +08:00
Huang Qi 192e4eb52d tools: Update WRC path to use WASM_TOOLCHAIN_PATH for wamrc
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:19:13 +08:00
Huang Qi d6d287fcb3 interpreters/wamr: Add MEMORY64 Kconfig option
Add a new Kconfig option INTERPRETERS_WAMR_MEMORY64 to enable support for the WebAssembly MEMORY64 proposal, allowing modules to use 64-bit memory addressing. This is an experimental feature and may not be supported on all platforms or WAMR versions.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:19:13 +08:00
liaozhiwei fa959922f7 Build the quickjs unit test framework by generating a ROMFS image
Signed-off-by: liaozhiwei <liaozhiwei@xiaomi.com>
2026-04-20 15:19:10 +08:00
pengyaozong 48960a63c5 quickjs: add CONFIG_INTERPRETERS_QUICKJS_DUMP_LEAKS for leak check
Signed-off-by: pengyaozong <pengyaozong@xiaomi.com>
2026-04-20 15:19:09 +08:00
liaobin1 7eae6aa680 quickjs: fix cmake warning
Signed-off-by: liaobin1 <liaobin1@xiaomi.com>
2026-04-20 15:19:09 +08:00
yangkun27 cb1ea32a14 wamr:add wamr_unit_test
Signed-off-by: yangkun27 <yangkun27@xiaomi.com>
2026-04-20 15:19:09 +08:00
wenlingyun1 e9afae6bff wamr: add --enable-gc to wamrc if GC enabled
Signed-off-by: wenlingyun1 <wenlingyun1@xiaomi.com>
2026-04-20 15:19:04 +08:00
qinliansong a8088e4111 add quickjs memory leak trace for build
add quickjs memory leak trace for quickapp debug
test by qemu
Signed-off-by: qinliansong <qinliansong@xiaomi.com>
2026-04-20 15:19:03 +08:00
yangkun27 6b551d71e2 wamr:remove CONFIG_INTERPRETERS_WAMR_EXTERNAL_MODULE_REGISTRY
Signed-off-by: yangkun27 <yangkun27@xiaomi.com>
2026-04-20 15:19:02 +08:00
zhuanglin 6664034b16 wamr: fix introduce a non-existent header file with
Signed-off-by: zhuanglin <zhuanglin@xiaomi.com>
2026-04-20 15:19:00 +08:00
liaobin1 e809d840c9 Feature sunset: MEMORY_LEAK_TRACK
sunset no use feature memory_leak_track

Signed-off-by: liaobin1 <liaobin1@xiaomi.com>
2026-04-20 15:18:59 +08:00
wenlingyun1 c97bc5f180 update quickjs patch for cmake compilation
Signed-off-by: wenlingyun1 <wenlingyun1@xiaomi.com>
2026-04-20 15:18:59 +08:00
wenlingyun1 7a1be20ddf add CMakeLists.txt for quickjs
Signed-off-by: wenlingyun1 <wenlingyun1@xiaomi.com>
2026-04-20 15:18:59 +08:00
wenlingyun1 840cb641d7 quickjs/cmake: fetch quickjs source code if the quickjs directory doesn't exist
Signed-off-by: wenlingyun1 <wenlingyun1@xiaomi.com>
2026-04-20 15:18:57 +08:00
openvela-robot 373ce0a3b0 Merge branch 'master' into vela
apache/nuttx-apps commit id: c5c18a29973802b196e77adf3fd3e6742a269d83

Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:18:54 +08:00
openvela-robot 4e0a573f23 nsh: support watch command
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:18:53 +08:00
openvela-robot b0d05e45c1 cmake(snyc):fix nuttx-apps CMakeList.txt conflit
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:18:51 +08:00
openvela-robot db9da5caee nshlib:Add macro restrictions to code that uses floating point numbers
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:18:49 +08:00
openvela-robot 7344f54d1a top:fix memleak if ps_recored retrun error
7   534         128     6096556 0x44c43720  [0x0402a5ec0] <mm_zalloc+8>        mm_heap/mm_zalloc.c:45
                                             [0x0402a35ce] <zalloc+18>          umm_heap/umm_zalloc.c:70
                                             [0x0402b72ba] <top_callback+238>   nsh_proccmds.c:733
                                             [0x0402b57f8] <nsh_foreach_direntry+32> nsh_fsutils.c:474
                                             [0x0402b7c86] <cmd_top+562>        nsh_proccmds.c:1252
                                             [0x0402b2496] <nsh_command+70>     nsh_command.c:1262
                                             [0x0402ae9fc] <nsh_execute+60>     nsh_parse.c:717

 7   534         512     6095859 0x44c1e270  [0x0402a5ec0] <mm_zalloc+8>        mm_heap/mm_zalloc.c:45
                                             [0x0402a35ce] <zalloc+18>          umm_heap/umm_zalloc.c:70
                                             [0x0402b72d8] <top_callback+268>   nsh_proccmds.c:741
                                             [0x0402b57f8] <nsh_foreach_direntry+32> nsh_fsutils.c:474
                                             [0x0402b7c86] <cmd_top+562>        nsh_proccmds.c:1252
                                             [0x0402b2496] <nsh_command+70>     nsh_command.c:1262
                                             [0x0402ae9fc] <nsh_execute+60>     nsh_parse.c:717

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:18:47 +08:00
openvela-robot 552570496c cjson_test:add define CONFIG_CJSON_NESTING_LIMIT
Summary:
 Added a limit to CJSON_NESTING_LIMIT. The default value is 1000, which can cause stack overflow in some test cases.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:18:46 +08:00
openvela-robot ce2bf03d31 net: Remove IFF_DOWN flag to compatible with Linux/*BSD
turn off interface by checking IFF_UP flag isn't set:
https://github.com/apache/nuttx/issues/1838

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:18:45 +08:00
yinshengkai 7d16d899f6 quickjs: fix mp_mul multiple definition
in function `mp_mul':
apps/interpreters/quickjs/quickjs/libbf.c:1179: multiple definition of `mp_mul';
nuttx/staging/libapps.a:apps/math/libtommath/libtommath/bn_mp_mul.c:8: first defined here

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:18:44 +08:00
openvela-robot 3a3a0906f6 examples/pipe: Enhance test by different r/w thread priority
By arranging and combining the priorities of read and write
threads to cover more usage scenarios.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:18:43 +08:00
openvela-robot 7be1dac276 tools/mksymtab.sh: Using getopts to parse parameters
Use the "-a" option to specify additional lists

Examples
  - The basic.txt
    $ cat basic.txt
    basic_func0
    basic_func1
    basic_func2

  - The additional.txt
    $ cat additional.txt
    additional_func0
    additional_func1
    additional_func2

  1. Get symbols from directory "EMPTY_DIR" and additional list basic.txt
    ./tools/mksymtab.sh ./EMPTY_DIR -a basic.txt
    #if defined(CONFIG_EXECFUNCS_HAVE_SYMTAB)
    const struct symtab_s CONFIG_EXECFUNCS_SYMTAB_ARRAY[] =
    #elif defined(CONFIG_NSH_SYMTAB)
    const struct symtab_s CONFIG_NSH_SYMTAB_ARRAYNAME[] =
    #else
    const struct symtab_s dummy_symtab[] =
    #endif
    {
      {"basic_func0", &basic_func0},
      {"basic_func1", &basic_func1},
      {"basic_func2", &basic_func2},
    };

  2. Get symbols from directory "EMPTY_DIR" and two additional lists basic.txt, additional.txt
    ./tools/mksymtab.sh ./EMPTY_DIR -a basic.txt -a additional.txt
    #if defined(CONFIG_EXECFUNCS_HAVE_SYMTAB)
    const struct symtab_s CONFIG_EXECFUNCS_SYMTAB_ARRAY[] =
    #elif defined(CONFIG_NSH_SYMTAB)
    const struct symtab_s CONFIG_NSH_SYMTAB_ARRAYNAME[] =
    #else
    const struct symtab_s dummy_symtab[] =
    #endif
    {
      {"additional_func0", &additional_func0},
      {"additional_func1", &additional_func1},
      {"additional_func2", &additional_func2},
      {"basic_func0", &basic_func0},
      {"basic_func1", &basic_func1},
      {"basic_func2", &basic_func2},
    };

  3. Set prefix and get symbols from directory "EMPTY_DIR" and two additional lists basic.txt, additional.txt
    ./tools/mksymtab.sh ./EMPTY_DIR PREFIX_TEST  -a basic.txt -a additional.txt
    const struct symtab_s PREFIX_TEST_exports[] =
    {
      {"additional_func0", &additional_func0},
      {"additional_func1", &additional_func1},
      {"additional_func2", &additional_func2},
      {"basic_func0", &basic_func0},
      {"basic_func1", &basic_func1},
      {"basic_func2", &basic_func2},
    };

  4. Error: Missing <imagedirpath>
    $ ./tools/mksymtab.sh
    ERROR: Missing <imagedirpath>

    Usage: ./tools/mksymtab.sh <imagedirpath> [symtabprefix] [-a additionalsymbolspath]

UNSUPPORTED usage examples
  # `getopt` supports these, but the usage in GNU and macOS is incompatible.
  - ./tools/mksymtab.sh ./EMPTY_DIR -a basic.txt PREFIX_TEST -a additional.txt
  - ./tools/mksymtab.sh -a basic.txt ./EMPTY_DIR PREFIX_TEST -a additional.txt

References
  BASH(1)   -- getopts
  GETOPT(1) -- getopt

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:18:42 +08:00
openvela-robot a6daffa109 nxcodec: add rich debugging logs
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2026-04-20 15:18:41 +08:00
openvela-robot b2949ba2d4 nxcodec: fix build warning
nxcodec_main.c:143:37: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
  143 |             printf("nxcodec size: %lux%lu\n",
      |                                   ~~^
      |                                     |
      |                                     long unsigned int
      |                                   %u
  144 |                    codec.output.format.fmt.pix.width,
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               uint32_t {aka unsigned int}
nxcodec_main.c:143:41: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=]
  143 |             printf("nxcodec size: %lux%lu\n",
      |                                       ~~^
      |                                         |
      |                                         long unsigned int
      |                                       %u
  144 |                    codec.output.format.fmt.pix.width,
  145 |                    codec.output.format.fmt.pix.height);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                               |
      |                                               uint32_t {aka unsigned int}

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2026-04-20 15:18:40 +08:00
openvela-robot 8c632a5e3b nsh: Fix PS printing misalignment
When the stack is allocated in megabytes, printing seven bits of ps will not align

Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2026-04-20 15:18:26 +08:00
openvela-robot 6fd790f084 add INTERPRETERS_WAMR_DYNAMIC_AOT_DEBUG config
Signed-off-by: zhangliangyu3 <zhangliangyu3@xiaomi.com>
2026-04-20 15:18:22 +08:00
xuxingliang 8962153be2 luasyslog: add cmake support
nsh>
nsh> lua
Lua 5.4.0  Copyright (C) 1994-2020 Lua.org, PUC-Rio
> for k,v in pairs(lsyslog)
>> do
>> print(k,v)
>> end
open    function: 0x402d49c0
FACILITY_LOCAL4 0.0
FACILITY_AUTH   0.0
_COPYRIGHT      Copyright (C) 1994-2021 Nicolas Casalini (DarkGod)
FACILITY_DAEMON 0.0
FACILITY_LOCAL1 0.0
LOG_WARNING     4.0
close   function: 0x402d4990
FACILITY_AUTHPRIV       0.0
LOG_ALERT       1.0
_DESCRIPTION    LuaSyslog allows to use log to an unix Syslog daemon, direct or via LuaLogging
FACILITY_CRON   0.0
FACILITY_FTP    0.0
LOG_DEBUG       7.0
FACILITY_LOCAL0 0.0
LOG_NOTICE      5.0
FACILITY_LOCAL5 0.0
LOG_EMERG       0.0
FACILITY_LPR    0.0
_VERSION        LuaSyslog 2.0.1
FACILITY_LOCAL7 0.0
FACILITY_KERN   0.0
log     function: 0x402d4944
FACILITY_LOCAL2 0.0
LOG_INFO        6.0
FACILITY_NEWS   0.0
FACILITY_LOCAL6 0.0
FACILITY_SYSLOG 0.0
FACILITY_USER   0.0
FACILITY_LOCAL3 0.0
FACILITY_UUCP   0.0
LOG_ERR 3.0
FACILITY_MAIL   0.0
LOG_CRIT        2.0
> lsyslog.log(lsyslog.LOG_EMERG, "Hello")
Hello
>

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-20 15:18:19 +08:00
Huang Qi 52139d4eb0 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>
2026-04-20 15:18:17 +08:00
openvela-robot 79b997db4c coremark:Fix renaming issues with other libraries
The crc16 naming implemented in coremark is duplicated in zblue.

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:18:17 +08:00
openvela-robot ec4f19c3fa app/netstatistics: Add net statistics api for user
Signed-off-by: meijian <meijian@xiaomi.com>
2026-04-20 15:18:16 +08:00
openvela-robot cdc354393f uORB: Add topic information acquisition and setting interface.
Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 15:18:15 +08:00
openvela-robot 504c342d88 examples/tlpi:Add t_sched_getaffinity.c compilation
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
2026-04-20 15:18:14 +08:00
YAMAMOTO Takashi 06ca5cd97a toywasm: regen
```
REF=d7bb4aaef08be2d7821891f17bd9ef82ac1ba358 ./regen.sh
```
2026-04-20 15:18:13 +08:00
YAMAMOTO Takashi 6eb5bf01bc toywasm: bump to v63.0.0 2026-04-20 15:18:13 +08:00
openvela-robot ef994d3c0b build(deps): bump codelytv/pr-size-labeler from 1.10.0 to 1.10.1
Bumps [codelytv/pr-size-labeler](https://github.com/codelytv/pr-size-labeler) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/codelytv/pr-size-labeler/releases)
- [Commits](https://github.com/codelytv/pr-size-labeler/compare/v1.10.0...v1.10.1)

---
updated-dependencies:
- dependency-name: codelytv/pr-size-labeler
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-20 15:18:13 +08:00
openvela-robot bf1281df9f uORB: DEBUG_UORB add LIBC_PRINT_EXTENSION dependency.
Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 15:18:11 +08:00
openvela-robot ce02909afe build.yml: Workflow aligned with nuttx repo
build.yml: Limit the GitHub Runners

see https://github.com/apache/nuttx/pull/13412
2026-04-20 15:18:10 +08:00
openvela-robot aa82103353 system/coredump: compatible restore name with NAME_MAX 32 Bytes
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:18:09 +08:00
xuxin19 aefbabae52 Makefile:complete missing DEPPATH
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:18:07 +08:00