Commit Graph

186 Commits

Author SHA1 Message Date
openvela-robot b4cfa1b909 Merge branch 'dev-merge-github-20230228' into dev 2025-12-15 18:24:02 +08:00
openvela-robot 1c8d893180 zlib&libwebsockets: add seperate repo into git ignore
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:23:59 +08:00
openvela-robot cb65e2eea8 libsodium depends on ICS license 2025-12-15 18:23:52 +08:00
openvela-robot 576ceff21f testing/gpu: add tiled image test
Signed-off-by: Xuxingliang <xuxingliang@xiaomi.com>
Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
2025-12-15 18:23:49 +08:00
openvela-robot 6275869b6c 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>
2025-12-15 18:23:45 +08:00
openvela-robot aeca6c0872 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>
2025-12-15 18:23:43 +08:00
openvela-robot 6ff737496c 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>
2025-12-15 18:23:39 +08:00
openvela-robot 561214f0ea 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>
2025-12-15 18:23:37 +08:00
openvela-robot 9de3953dcc 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>
2025-12-15 18:23:34 +08:00
openvela-robot d258b325ba Revert "Makefile: Restore "Fix: ensure archive files do not specific productry object files from prior builds""
This reverts commit 5872ad7e4015ebb11c9bbd8bcbae98a10fb5d681.

Reason for revert: <regression>
2025-12-15 18:23:32 +08:00
openvela-robot 6c92f99d31 app/ltp : enable can_filter/can_rcv_own_msgs
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2025-12-15 18:23:24 +08:00
openvela-robot 51e8655d6f Revert "drivertest: fix warning"
This reverts commit b38558eb8997737c886cc67dcbbeac74d774ac73.

Signed-off-by: likun17 <likun17@xiaomi.com>
2025-12-15 18:23:13 +08:00
openvela-robot d5213a7b76 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>
2025-12-15 18:23:11 +08:00
openvela-robot 98c6e75693 lv_porting/gpu: fix trans_mode duplicate judgment
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2025-12-15 18:23:09 +08:00
openvela-robot a0a3d4ffc6 system: support system fastbootd
Add the fastbootd program to support the flash, getvar, and reboot commands.

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2025-12-15 18:23:06 +08:00
openvela-robot ae55704743 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>
2025-12-15 18:23:03 +08:00
openvela-robot 2a88c89148 WS2812ESP32 example name is configurable and default name shortened 2025-12-15 18:23:00 +08:00
openvela-robot 3369f13085 cmake:migrate apps CMakeLists for mbedtls
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2025-12-15 18:22:59 +08:00
openvela-robot efab642d82 fix cmake code smell issues
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2025-12-15 18:22:56 +08:00
openvela-robot 53cd29f8d6 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>
2025-12-15 18:22:54 +08:00
openvela-robot 6678342910 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>
2025-12-15 18:22:51 +08:00
openvela-robot 250d704a7f lv_porting/img_cache: add memdump when malloc fail
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2025-12-15 18:22:49 +08:00
openvela-robot e564b07834 Fix Kconfig style
Remove spaces from Kconfig files
Add TABs
Add comments
2025-12-15 18:22:47 +08:00
openvela-robot b6316cba94 lv_porting/gpu: add undecoded image check
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2025-12-15 18:22:45 +08:00
openvela-robot 1855e24290 memtester:Adaptation of memtester
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2025-12-15 18:22:41 +08:00
openvela-robot 747b7a723e memtester:update format
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2025-12-15 18:22:39 +08:00
openvela-robot 14fff13b11 setlogmask: fix uncloseed handle
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2025-12-15 18:22:36 +08:00
openvela-robot 19ff001726 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>
2025-12-15 18:22:34 +08:00
openvela-robot c660edb487 mbedtls: mbedtls_selftest depends on MBEDTLS_SSL_DTLS_CONNECTION_ID
Signed-off-by: makejian <makejian@xiaomi.com>
2025-12-15 18:22:31 +08:00
openvela-robot 1c07825b0e lv_porting/lv_img_cache: add error resource print
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2025-12-15 18:22:30 +08:00
openvela-robot 5f89cdb5c4 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>
2025-12-15 18:22:28 +08:00
openvela-robot 59dd39a7b8 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>
2025-12-15 18:22:26 +08:00
openvela-robot 5b036bd462 apps/gpsutils: move gpsutils to nuttx/libs/libc/gpsutils
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2025-12-15 18:22:24 +08:00
openvela-robot df8eca8935 crypto/mbedtls: disable MBEDTLS_PADLOCK_C by default if enable MBEDTLS_AES_ALT
Signed-off-by: makejian <makejian@xiaomi.com>
2025-12-15 18:22:21 +08:00
openvela-robot 4c8abf72e2 rptun/ping: fix invalid use of nsh_error after 31421db6f 2025-12-15 18:22:19 +08:00
openvela-robot 5bd0d642a8 crypto/mbedtls: disable MBEDTLS_PADLOCK_C by default
Signed-off-by: makejian <makejian@xiaomi.com>
2025-12-15 18:22:17 +08:00
openvela-robot 35999efd18 mbedtls-alt: add aes alternative implementation
aes module of mbedtls use alternative implementation via /dev/crypto
Signed-off-by: makejian <makejian@xiaomi.com>
2025-12-15 18:22:15 +08:00
openvela-robot 9413456c62 Revert "libuv: Add getppid and symlink depends"
This reverts commit 40b21ce6039531356216ba24e576eeeb9211611f.

Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2025-12-15 18:22:13 +08:00
openvela-robot 2463ef7147 Fix Kconfig style
Replace help => ---help---
Add comments
2025-12-15 18:22:11 +08:00
openvela-robot c678907cf2 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>
2025-12-15 18:22:09 +08:00
openvela-robot 7f2c21985f example/capture : fixed build warning
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
2025-12-15 18:22:07 +08:00
openvela-robot ca09ed45d7 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>
2025-12-15 18:22:05 +08:00
openvela-robot 8fcbe79349 Change all sizeof(arr)/sizeof(arr[0]) to nitems
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2025-12-15 18:22:02 +08:00
openvela-robot 2c71db144c pm:fix testcase compile error after the interface modified
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2025-12-15 18:22:01 +08:00
huangkai8 210f10a9aa Wrong start and end values would make dead cycle. Exchange the values when start value is bigger than end value. 2025-12-15 18:21:59 +08:00
openvela-robot 8a06dfa6d1 mtd_config_fs: Default select MTD_CONFIG_NAMED config
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
2025-12-15 18:21:58 +08:00
openvela-robot 334d798eca lv_porting/dcache: move the D-Cache init to disp
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2025-12-15 18:21:57 +08:00
openvela-robot f68333c6a8 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>
2025-12-15 18:21:55 +08:00
openvela-robot b81165dd3f examples: Change unionfs_mount to mount
since unionfs_mount isn't exported through syscall

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2025-12-15 18:21:52 +08:00
openvela-robot aa16f7f3f7 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>
2025-12-15 18:21:51 +08:00