Commit Graph

195 Commits

Author SHA1 Message Date
raiden00pl 57df2c98c2 canutils: change dependency from GPL to BSD
socketCAN utils are dual licence, there is no point in using
GPL licence when we can use BSD.

Also change `select CANUTILS_LIBCANUTILS` to `depends on CANUTILS_LIBCANUTILS`.
We can't `select` that option when `ALLOW_BSD_COMPONENTS` is not set.
2026-04-20 15:18:56 +08:00
openvela-robot 62a59c1e53 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:17:32 +08:00
openvela-robot 93f02638fc Zig & D examples clean & refactor
dlang: use importC to get NuttX include
zig: leds_zig added
2026-04-20 15:17:30 +08:00
openvela-robot 4a8bd460e1 perf-tool:support record function
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2026-04-20 15:17:29 +08:00
openvela-robot a158fdfb1f ostest: delete the code that accesses the internal fields of mutex
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:17:13 +08:00
openvela-robot 1fe1515ebd drivertest watchdog:add busyloop prevent os enter pm.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-20 15:17:12 +08:00
openvela-robot c1a993191c app:port stressapptest to nuttx
stressapptest is a userspace test, primarily composed of threads doing memory copies
and directIO disk read/write. It allocates a large block of memory (typically 85% of
the total memory on the machine), and each thread will choose randomized blocks of
memory to copy, or to write to disk. Typically there are two threads per processor,
and two threads for each disk. Result checking is done as the test proceeds by
CRCing the data as it is copied.
https://github.com/stressapptest/stressapptest

Signed-off-by: guohao15 <guohao15@xiaomi.com>
2026-04-20 15:17:10 +08:00
openvela-robot 745afe5015 [BugFix]Command "critmon" error
Command "critmon" has some format errors and information errors, such as:

PRE-EMPTION CALLER            CSECTION CALLER               RUN         TIME             PID   DESCRIPTION
1.679000000                   3.704000000
                         None None             0     CPU0 IDLE
0.002000000                   0.003000000
                         None None             1     CPU1 IDLE
0.000000000                   0.000000000
                         None None             2     CPU2 IDLE
0.000000000                   0.000000000
                         None None             3     CPU3 IDLE
0.001000000                   0.001000000
                         None None             4     hpwork
0.002000000                   0.006000000
                         None None             5     nsh_main
0.000000000                   0.000000000
                         None None             6     critmon

After bug fix:

PRE-EMPTION CALLER            CSECTION CALLER               RUN              TIME             PID   DESCRIPTION
None                          None                          ---------------- ---------------- ----  CPU 0
None                          None                          ---------------- ---------------- ----  CPU 1
None                          None                          ---------------- ---------------- ----  CPU 2
None                          None                          ---------------- ---------------- ----  CPU 3
None                          None                          0.238000000      6.982000000      0     CPU0 IDLE
None                          None                          0.461000000      13.089000000     1     CPU1 IDLE
None                          None                          0.000000000      0.000000000      2     CPU2 IDLE
None                          None                          0.000000000      0.000000000      3     CPU3 IDLE
None                          None                          0.000000000      0.001000000      4     hpwork
None                          None                          0.000000000      0.010000000      5     nsh_main
None                          None                          0.000000000      0.000000000      46    critmon

Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
2026-04-20 15:17:09 +08:00
openvela-robot 73222324b6 netlib: Use the netlib_add_ipv6addr to set the IPv6 address after obtaining the address.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
2026-04-20 15:17:08 +08:00
openvela-robot 8d2e2f2622 testing/pm_smp: delay_yield ticks 1->2, avoid idle canot run one cycle
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:17:07 +08:00
openvela-robot c3ace8b544 apps/nxplayer: add ioctl stop when play completed
Signed-off-by: jinxiuxu <jinxiuxu@xiaomi.com>
2026-04-20 15:17:04 +08:00
openvela-robot 9ad4475bfd testing/crypto: add ecdsa testing
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:17:03 +08:00
openvela-robot 17cfc35160 fstest: If the file is deleted it will not be opened
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
2026-04-20 15:17:01 +08:00
openvela-robot 74aa258e29 apps/testing:Fix the table formatting issue in the README.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-20 15:17:00 +08:00
openvela-robot cfa95e7e62 cmake:builtin register support NONE srcs target
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:16:58 +08:00
openvela-robot da80100ffd system/fastboot: Fix error that download_size always be zero
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:16:57 +08:00
openvela-robot 0f511cbc1c feat(nsh): input (stdin) redirection
This adds support for `<` to redirect input on nsh commands.
2026-04-20 15:16:55 +08:00
openvela-robot 4b22271376 testing/ostest: Fix timing assertions in wdog_test
This patch removed timing assertions in wdog_test.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2026-04-20 15:16:54 +08:00
openvela-robot 2297146cc9 nshlib/ddcmd:Fixed NSH_CMDOPT_DD_STATS output format warning in 64-bit environment
In file included from nsh_ddcmd.c:44:
nsh_ddcmd.c: In function 'cmd_dd':
nsh_ddcmd.c:456:20: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=]
  456 |   nsh_output(vtbl, "%llu bytes copied, %u usec, ",
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |              total, (unsigned int)elapsed);
      |              ~~~~~
      |              |
      |              uint64_t {aka long unsigned int}
nsh_console.h:55:49: note: in definition of macro 'nsh_output'
   55 | #  define nsh_output(v, ...)   (v)->output(v, ##__VA_ARGS__)
      |                                                 ^~~~~~~~~~~
nsh_ddcmd.c:456:24: note: format string is defined here
  456 |   nsh_output(vtbl, "%llu bytes copied, %u usec, ",
      |                     ~~~^
      |                        |
      |                        long long unsigned int
      |                     %lu
cc1: all warnings being treated as errors

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:16:53 +08:00
openvela-robot 54f22511c1 nsh/ps: fix -heap cut more than 10MB
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
2026-04-20 15:16:52 +08:00
openvela-robot 1f691f763d testing/memstress:Initialize the pointer to avoid the pointer being unknown when the memory alloc fails
Summary:
  fix warning

In function 'memorystress_iter',
    inlined from 'memstress_main' at memorystress_main.c:475:10:
memorystress_main.c:289:10: error: 'ptr' may be used uninitialized [-Werror=maybe-uninitialized]
  289 |       if (ptr == NULL)
      |          ^
memorystress_main.c: In function 'memstress_main':
memorystress_main.c:248:20: note: 'ptr' was declared here
  248 |       FAR uint8_t *ptr;
      |                    ^~~

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:16:50 +08:00
openvela-robot b56c16817b system/fastboot: Init total_imgsize to zero
otherwise random value, sometimes zero
And, close file if flash failed.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:16:49 +08:00
openvela-robot fc788a476e ostest: Enable vfork test for BUILD_KERNEL
The test was disabled because of a bug in the NuttX kernel, which is now
fixed. Obviously depends on the fix.
2026-04-20 15:16:48 +08:00
openvela-robot 46a1cd2d64 apps: Fix compilation error after nuttx/arch.h excluded
This patch fix compilation error after excluding nuttx/arch.h.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2026-04-20 15:16:46 +08:00
openvela-robot 6411a6232a build.yml: Added jobs to speed up CI checks.
Divided jobs risc-v and xtensa to finish workflow under 2 hours.
2026-04-20 15:16:45 +08:00
openvela-robot 8c5721ecf4 ostest/fpu.c: fix the greenhills compile warning
CC:  binfmt_unregister.c "fpu.c", line 98: warning #1160-D: a reduction in alignment without the
          "packed" attribute is ignored
    uintptr_t save1[XCPTCONTEXT_REGS] aligned_data(XCPTCONTEXT_ALIGN);
              ^

"fpu.c", line 99: warning #1160-D: a reduction in alignment without the
          "packed" attribute is ignored
    uintptr_t save2[XCPTCONTEXT_REGS] aligned_data(XCPTCONTEXT_ALIGN);
              ^

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-20 15:16:44 +08:00
openvela-robot 4e9cf93f03 build.yml: fix error: externally-managed-environment 2026-04-20 15:16:43 +08:00
openvela-robot f0a72dfc38 gcov.c: deal compile warming
gcov.c:61:6: warning: 'path' may be used uninitialized [-Wmaybe-uninitialized]
   61 |   if (path == NULL || access(path, F_OK) != 0 || atoi(strip) <= 0)
      |      ^
gcov.c: In function 'gcov_main':
gcov.c:79:19: note: 'path' was declared here
   79 |   FAR const char *path;

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2026-04-20 15:16:41 +08:00
openvela-robot 60f24e5128 toywasm: bump to v57.0.0 2026-04-20 15:16:40 +08:00
openvela-robot fda2156882 system/fastboot: Fix fd leak of fastboot_filedump_upload()
1398407 资源泄漏
系统资源不会被重新回收利用,这降低了资源的未来可用性。
在 fastboot_filedump_upload 中: 内存或系统资源的指针泄漏 (CWE-404)

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:16:39 +08:00
openvela-robot f919b6feca build.yml: Updated the workflow to use version v4 of the actions/upload-artifact and actions/download-artifact
Sync the version of the macOS runner on GitHub with the version used in the nuttx repository.

runs-on: macos-12 -> runs-on: macos-13
2026-04-20 15:16:38 +08:00
openvela-robot eeb0d63cbe porting fake function framework to vela via cmake
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2026-04-20 15:16:36 +08:00
openvela-robot b7b6ea60f7 wamr: add a few missing options to match the wamr repo counterpart 2026-04-20 15:16:35 +08:00
openvela-robot 484ef310f2 coredump:fix build break
./coredump.c:37:10: fatal error: nuttx/lib/coredump.h: No such file or directory
   37 | #include <nuttx/lib/coredump.h>
      |          ^~~~~~~~~~~~~~~~~~

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2026-04-20 15:16:34 +08:00
openvela-robot 520d5813d8 apps/videoutils: add Makefile
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
2026-04-20 15:16:33 +08:00
openvela-robot ae58ce8788 mbedtls-alt: support cmac
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:16:31 +08:00
openvela-robot 1e116f37bc toywasm: bump to v54.0.0 2026-04-20 15:16:30 +08:00
xucheng5 260abeb83d apps: delete netpacket/can.h
dependson: 4078138

Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2026-04-20 15:16:29 +08:00
openvela-robot 47496b1a6d Merge branch 'dev-merge-github-20230228' into dev 2026-04-20 15:12:39 +08:00
openvela-robot eb01857f39 zlib&libwebsockets: add seperate repo into git ignore
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2026-04-20 15:12:38 +08:00
openvela-robot 4f05ad9fe7 libsodium depends on ICS license 2026-04-20 15:12:18 +08:00
openvela-robot 7f37c4d892 testing/gpu: add tiled image test
Signed-off-by: Xuxingliang <xuxingliang@xiaomi.com>
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2026-04-20 15:12:17 +08:00
openvela-robot 5b23db4349 mbedtls: use 'getrandom' to get system entropy
use getrandom to get system entropy and not dependent on config DEVURANDOM
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:12:15 +08:00
openvela-robot ad54f17af8 Fix coremark/core_util.c:210:17: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:12:14 +08:00
openvela-robot 4d5c354ef7 system/fastboot: Fix command comparation
e.g. The command is "reboot-bootloader", but will match and break when
     compared  with "reboot"

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2026-04-20 15:12:11 +08:00
openvela-robot 686ec3623d Application.mk:define main entry MAINNAME relatively
when a program has multiple MAINSRC for incremental compilation,
the PROGNAME of the compiled file may generate errors
-------------------- compile definition error ---------------------
cc -c -g CFLAGS INCLUDEDIR -Dmain=funA_main funB.c -o funB.c.path.o
                             ^^^^  ^^^^^^    ^^^^
-------------------------------------------------------------------
use the MAINOBJ:PROGNAME mapping variable to define the main entry name

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:12:11 +08:00
openvela-robot ac098e0564 crypto/mbedtls: fix build break on sha256.c
Build break on Assemble compiler if -fno-omit-frame-pointer and -O3 enabled at same time

{standard input}: Assembler messages:
{standard input}:2560: Error: branch out of range
make[2]: *** [apps/Application.mk:170: mbedtls/library/sha256.o] Error 1

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:12:08 +08:00
openvela-robot 5dc0bcd053 Revert "Makefile: Restore "Fix: ensure archive files do not carry object files from prior builds""
This reverts commit 5872ad7e4015ebb11c9bbd8bcbae98a10fb5d681.

Reason for revert: <regression>
2026-04-20 15:12:07 +08:00
openvela-robot b43e8ac0af app/ltp : enable can_filter/can_rcv_own_msgs
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2026-04-20 15:12:06 +08:00
openvela-robot 515d519ff4 Revert "drivertest: fix warning"
This reverts commit b38558eb8997737c886cc67dcbbeac74d774ac73.

Signed-off-by: likun17 <likun17@xiaomi.com>
2026-04-20 15:12:05 +08:00