Commit Graph

538 Commits

Author SHA1 Message Date
chenrun1 5764922e25 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:44 +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
openvela-robot 1fc3b6cb64 testing/crypto: fix aescbc crash when update iv
iv content always should be updated when performing encryption operation, so need update testing case
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:12:04 +08:00
openvela-robot 52f359e733 lv_porting/gpu: fix trans_mode duplicate judgment
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:12:03 +08:00
openvela-robot 83c72c5cc8 system: support system fastbootd
Add the fastbootd program to support the flash, getvar, and reboot commands.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2026-04-20 15:12:01 +08:00
openvela-robot 3531baa481 Fixed the error that when the driver scan result is empty, iwe_stream->len is a random number because the user data buf is not initialized.
Signed-off-by: wangyingdong <wangyingdong@xiaomi.com>
2026-04-20 15:12:00 +08:00
openvela-robot 5879ab2c9f WS2812ESP32 example name is configurable and default name shortened 2026-04-20 15:11:59 +08:00
openvela-robot b2e08e0b65 cmake:migrate apps CMakeLists for mbedtls
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:11:58 +08:00
openvela-robot 7417f4cf8a fix cmake code smell issues
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-20 15:11:57 +08:00
openvela-robot 39cc00640c Fix wrong parameter size
Type int expects 4 bytes for function write(). Type char expects 1 byte which matches the real usage of function write().

Signed-off-by: renzhiyuan1 <renzhiyuan1@xiaomi.com>
2026-04-20 15:11:55 +08:00
openvela-robot 6b3b00b155 mqttc: add mbedtls MQTTC support
The mqttc demo under example path can not support mbedtls api.
Because of the MQTT-C source code already contains many types of
link examples, so we added the corresponding makefile to
support mbedtls mqttc connections publisher and posix mqttc
connections publisher and subscriber.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-20 15:11:54 +08:00
openvela-robot 57eb7368cb lv_porting/img_cache: add memdump when malloc fail
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:11:53 +08:00
openvela-robot da489d3134 Fix Kconfig style
Remove spaces from Kconfig files
Add TABs
Add comments
2026-04-20 15:11:52 +08:00
yangyalei e8ac8aca91 test: modify stacksize and priority
Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2026-04-20 15:10:47 +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
openvela-robot 88245dc3be mcuboot: update mcuboot to support swap using move
Older versions of mcuboot did not support swap using move and therefore
the build would have failed CONFIG_MCUBOOT_SWAP_USING_MOVE=y.

Newer mcuboot contains initial support of swap using move for NuttX. Also
Makefile was updated to as some bootutil files were removed from mcuboot.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2026-04-20 15:10:44 +08:00
openvela-robot 15a6b0318c gpu_manager: add stricter parameter checking
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:10:43 +08:00
openvela-robot 961a042479 fix ostest sigprocmask testcase
problem: ostest may fail at procmask test, because signals:sigkill/sigstop should not be added in signal mask
solution: skip checking whether sigkill/sigstop are in signal mask

Signed-off-by: guanyi <guanyi@xiaomi.com>
2026-04-20 15:10:40 +08:00
openvela-robot 9166c27b0d tools: Raise error if wasm module build failed
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:10:40 +08:00
openvela-robot 221481b902 nshlib: add print negative number support for echo command
Fix issue that "echo -1" will give "argument invalid" error

Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2026-04-20 15:10:39 +08:00
openvela-robot b8ddd14b7f lvgldemo:add header file lvgl_test.h
add header file to avoid build failed of lvgldemo when enable some configs

Signed-off-by: duxiaoliang <duxiaoliang@xiaomi.com>
2026-04-20 15:10:37 +08:00
openvela-robot dafc8663d0 examples/sotest: remove unnecessary config
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:10:36 +08:00
openvela-robot d3b219bc8e ofloader: add open flash loader support [1/2]
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2026-04-20 15:10:35 +08:00
openvela-robot cb574562a5 system/uorb: Support frequency less than 1hz
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-20 15:10:33 +08:00
openvela-robot 5e359c1924 add testcase for regulator set mode and auto pm
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2026-04-20 15:10:32 +08:00
openvela-robot 0e5d9df3b3 testing/mm: add maxsize parameter
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-04-20 15:10:30 +08:00
openvela-robot 9090362d3c fix libsodium compile warning
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:10:29 +08:00
openvela-robot 0a35926619 Revert "toywasm: disable tail call and explain why"
This reverts commit fcda92ebc7e77b5d302c322d202a85044713dd0d.

because it isn't necessary for the latest versions of toywasm.
2026-04-20 15:10:28 +08:00
openvela-robot 2a71bb0d66 gpu_manager: add lvgl draw buffer adaptation
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2026-04-20 15:10:27 +08:00
openvela-robot f5765f8f9d Move Wasm.mk to end of file since it need definition from Application.mk itself.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:10:25 +08:00
openvela-robot ba80f742df examples: Build both native app and wasm app for hello to pass CI test
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:10:25 +08:00
openvela-robot f8cfeed546 system/cachespeed:Redesign of the overall test tool.
Compared to the previous version, the following factors have been taken into account in the new version of cachespeed:
1. the user needs to care about getting a piece of available memory (even if this piece of memory may memory stomp during use)
2. High repetition of test code, poor readability, and overall high test coupling
3. Not taking into account the alignment cache line situation
4. When comparing values between different test tools, there is a little error because of the different ways to get the values (different fine reading)
Therefore, in the new version according to the above problems have been improved:
1. Provide a "test_skeleton", which contains the overall testing process
2. The user only needs to execute, not to care about how to get the available memory address, and the memory allocated by the program also ensures the memory security and data accuracy
3. The system to obtain the data required for the test reduces the difficulty of use and the possibility of inaccurate results due to data errors.
4. Provide two kinds of precision data results, which can be configured through Kconfig
5. Optimize the output log, now more intuitive and concise, to help the subsequent data organization and observation
6. New test items for aligned/unaligned cache line
7. Better readability and extensibility, making it easier to add/remove test items

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:10:23 +08:00
openvela-robot fc59b0f536 apps/graphics: fix gradient draw error with flush count
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2026-04-20 15:10:23 +08:00
openvela-robot 006200432b system/nxdiag: Fix race condition during build
This commit fixed a race condition that might happen by only unshallowing the Espressif HAL only after it was completely cloned.
2026-04-20 15:10:21 +08:00
openvela-robot 062599f309 add md5/sha1/sha256/sha512 testcases
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-20 15:10:21 +08:00
openvela-robot 28153280ad ostest: Skip test_dev_null when CONFIG_DEV_NULL isn't enabled
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-20 15:10:19 +08:00
openvela-robot 8b816f9e71 tools: Don't register app into nsh if WASM_BUILD_ONLY == y
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2026-04-20 15:10:19 +08:00
openvela-robot 379ea1dfd9 nshlib: Add fdinfo to get information about the process associated fd
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2026-04-20 15:10:17 +08:00