Commit Graph

112 Commits

Author SHA1 Message Date
guanyi3 b31f177913 testing/ostest: reduce test time
reduce sleep() time in testcase, total test time reduced from 150s to 60s

Signed-off-by: guanyi3 <guanyi3@xiaomi.com>
2026-04-20 15:19:38 +08:00
chao an 73965e00a2 testing: fix visual studio Compiler Error C2057
expected constant expression
The context requires a constant expression, an expression whose value is known at compile time.
The compiler must know the size of a type at compile time in order to allocate space for an instance of that type.

Reference:
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2057?view=msvc-170

Signed-off-by: chao an anchao@xiaomi.com
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:11:51 +08:00
openvela-robot 439449e29d lv_porting/gpu: add undecoded image check
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:11:51 +08:00
chao an 5fa95ceb2f testing: fix visual studio Compiler Error C2057
expected constant expression
The context requires a constant expression, an expression whose value is known at compile time.
The compiler must know the size of a type at compile time in order to allocate space for an instance of that type.

Reference:
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2057?view=msvc-170

Signed-off-by: chao an anchao@xiaomi.com
Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:11:48 +08:00
chao an cc76ca376c Revert "win32/msvc: workaround for windows"
This reverts commit 3e6cd5893b313dcadfc3921116e136b4a92f7aad.

Signed-off-by: chao an <anchao@xiaomi.com>
2026-04-20 15:11:46 +08:00
openvela-robot 915af431da apps/nshlib: Add the pidof command and API nsh_getpid
Add the API "nsh_getpid" in "nsh_fsutils. c" and the nsh command pidof. Temporarily support two parameters, - s, and process name
Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
2026-04-20 15:11:46 +08:00
openvela-robot 8b3c57b0c0 mbedtls: mbedtls_selftest depends on MBEDTLS_SSL_DTLS_CONNECTION_ID
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:11:44 +08:00
openvela-robot 2a8488d0df lv_porting/lv_img_cache: add error resource print
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:11:44 +08:00
openvela-robot 8f9a6e1056 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:11:43 +08:00
openvela-robot f513ac8168 add macro for ecc
application may use micro-ecc for some ecc operation, which may be
faster than tinycrypt, due to assamble code, but both of them have
same function defination, cause build error on there case.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2026-04-20 15:11:42 +08:00
openvela-robot 9845a5a47d apps/gpsutils: move gpsutils to nuttx/libs/libc/gpsutils
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:11:40 +08:00
openvela-robot dd187932cd crypto/mbedtls: disable MBEDTLS_PADLOCK_C by default if enable MBEDTLS_AES_ALT
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:11:39 +08:00
openvela-robot d3a03b0744 rptun/ping: fix invalid use of nsh_error after 31421db6f 2026-04-20 15:11:37 +08:00
openvela-robot fbf3cb95e3 crypto/mbedtls: disable MBEDTLS_PADLOCK_C by default
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:11:37 +08:00
openvela-robot be0d849333 mbedtls-alt: add aes alternative implementation
aes module of mbedtls use alternative implementation via /dev/crypto
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:11:36 +08:00
openvela-robot 7a5aac5cfd Revert "libuv: Add getppid and symlink depends"
This reverts commit 40b21ce6039531356216ba24e576eeeb9211611f.

Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2026-04-20 15:11:35 +08:00
openvela-robot 47e6725fc8 Fix Kconfig style
Replace help => ---help---
Add comments
2026-04-20 15:11:34 +08:00
openvela-robot 01853547de feat(v9): change config for v9
remove dependency for LV_FBDEV_INTERFACE_DEFAULT_DEVICEPATH and
LV_TOUCHPAD_INTERFACE_DEFAULT_DEVICEPATH, because v9 will not
need LV_USE_FBDEV_INTERFACE and LV_USE_TOUCHPAD_INTERFACE.

Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
2026-04-20 15:11:33 +08:00
openvela-robot 97454464b8 example/capture : fixed build warning
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2026-04-20 15:11:32 +08:00
openvela-robot 236c10da9b apps/examples/pipe: check POSIX-compliant behavior of NuttX's FIFOs
Adjust the test considering the POSIX-compliant behavior of the
NuttX's FIFO (mkfifo), which should block `open` for read-only
and write-only. This test's result is expected to be the same with
any other POSIX-compliant system.

This commit also:

 * Fix redirect test;
 * Use pthread instead `task_create` to be able to run this test
on POSIX-compliant systems;
 * General fixes regarding formatting and error messages;

Signed-off-by: wurui3 <wurui3@xiaomi.com>
2026-04-20 15:11:31 +08:00
openvela-robot 2d9ef88734 Change all sizeof(arr)/sizeof(arr[0]) to nitems
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:11:30 +08:00
openvela-robot f01108c7fc pm:fix testcase compile error after the interface modified
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2026-04-20 15:11:29 +08:00
openvela-robot 5915bb2de3 mtd_config_fs: Default select MTD_CONFIG_NAMED config
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2026-04-20 15:11:27 +08:00
openvela-robot a0e4851d15 lv_porting/dcache: move the D-Cache init to disp
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:11:27 +08:00
openvela-robot 0330f3f37e testing/cmocka:add a patch.
cmocka modification upload Nuttx community preparation: upload a patch with recent changes for cmocka source code.

Signed-off-by: yangjiao <yangjiao@xiaomi.com>
2026-04-20 15:11:25 +08:00
openvela-robot eea0a1c145 examples: Change unionfs_mount to mount
since unionfs_mount isn't exported through syscall

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:11:24 +08:00
openvela-robot 80b90dcfe3 builtin: uid and gid configuration for builtin app
File uid and gid configuration for builtin fs, if set-user-ID bit is set
in the file permissions, then the euid of process set as file uid. Use
the confiuration to emulate builtin app set.

MODE must octal number and use similar with linux chmod OCTAL-MODE FILE
UID  = 2000
GID  = 3000
MODE = 06555

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2026-04-20 15:11:23 +08:00
openvela-robot 3c3505ad8e ofloader: to avoid implicit boardctl call error
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2026-04-20 15:11:22 +08:00
openvela-robot 6d5160a3db mbedtls: add nuttx crypto alternative implementation in mbedtls
(1)add dev_alt to manage /dev/crypto
(2)add sha_alt to alternate sha1 algorithm
(3)use new mbedtls_config.h to admin configs of mbedtls
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:11:21 +08:00
openvela-robot 8dfe87c85b examples/watcher: get the thread name using pthread_getname_np
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-20 15:11:16 +08:00
openvela-robot e2899b8468 example/poll: add delay for poll testcase
for should setup the fifo firstly

Signed-off-by: ligd <liguiding1@xiaomi.com>
2026-04-20 15:11:12 +08:00
openvela-robot d9f8ac9db9 Revert "tools/Wasm.mk: Take optimization flags from native build"
This reverts commit 2725c6ae5c9bfb38b1560cb41aad112db2283246.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:11:07 +08:00
openvela-robot 5f9171080b nxcamera: Solve compilation errors caused by type mismatch
CC:  nxcamera.c nxcamera.c: In function 'show_image':
nxcamera.c:85:20: error: initialization of 'uint32_t *' {aka 'unsigned int *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Werror=incompatible-pointer-types]
   85 |   uint32_t *pbuf = pcam->bufs[buf->index];
      |                    ^~~~
cc1: all warnings being treated as errors

Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2026-04-20 15:11:05 +08:00
openvela-robot b725c1b2f8 apps/graphics/lvgl: add LV_USE_V9 config for wms
Signed-off-by: yanxiaowei <yanxiaowei@xiaomi.com>
2026-04-20 15:11:04 +08:00
openvela-robot 44fdc1d510 watchdog:test watchdog not depend on fs.
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2026-04-20 15:11:02 +08:00
openvela-robot 79ec58024e cmake:migrate apps CMakeLists for [audioutils benchmarks]
audioutils
  ├── fmsynth
  ├── mml_parser
  └── nxaudio
 benchmarks
  └── coremark

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:11:01 +08:00
openvela-robot 6a000f5baa system: dd: add standalone dd command
enabling SYSTEM_DD will disable nsh_dd by selecting NSH_DISABLE_DD

Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
2026-04-20 15:11:00 +08:00
openvela-robot 35ae73e206 fdt: use CONFIG_DTC_VERSION to identify the version of tools
Signed-off-by: liaoao <liaoao@xiaomi.com>
2026-04-20 15:10:59 +08:00
openvela-robot f30b7e4e5d drivertest_rtc:fix RTC_HAVE_SET_TIME is false.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-20 15:10:57 +08:00
openvela-robot 9611ec57f0 add mbedtls sha256/sha512 alternative implementation
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:10:57 +08:00
openvela-robot 6b291be420 apps/examples: fix fb example show error
For screens with transparency, the alpha value should be set to 0xFF

Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2026-04-20 15:10:55 +08:00
openvela-robot 91ddee3e68 graphics/libyuv: refine patching logic
Only stable branch need custom patch, main is fixed by upstream

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2026-04-20 15:10:55 +08:00
openvela-robot 363a34b84c testing/ostest: add test case for task priority change with locked scheduler
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2026-04-20 15:10:54 +08:00
openvela-robot 464a2ca7f7 gpu: Add config for disable fallback to sw draw.
Signed-off-by: huxiandong <huxiandong@xiaomi.com>
2026-04-20 15:10:53 +08:00
openvela-robot 8342123526 toywasm: bump the version to v31 2026-04-20 15:10:51 +08:00
openvela-robot 3bf6c94f7b lv_porting/img_cache: add static memory support
1. Separated from the main heap memory address, it is convenient to capture the heap mixed use problem.

2. In the future, if the GPU can only access the memory area at the specified address, you can specify the cache_mem section in the link script.

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:10:50 +08:00
openvela-robot a7ccf98748 fix memory leak in aesctr test case
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:10:48 +08:00
openvela-robot 6096200370 memorystress:Fix some warnings and make the index randomized.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:10:48 +08:00
openvela-robot 4504d753e0 usrsocktest: correct the parameter when pthread_kill is called
When the value of the signal is modified, the function will be faulty

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:10:46 +08:00
openvela-robot 8c70d6657d ltp/makefile: nuttx on github download ltp code failed fix
Fix github download ltp code error:
Cloning into 'ltp'...
*** Please tell me who you are.
Run
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@33ba2a4a6fc5.(none)')

Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2026-04-20 15:10:46 +08:00