anjiahao
5dcfe93a95
nsh:support $! get last pid use nsh run
...
test:
nsh> hello &
hello [4:100]
nsh> Hello, World!!
nsh> echo $!
4
nsh> echo $!
3
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK COMMAND
0 0 0 FIFO Kthread - Ready 0000000000000000 0069616 Idle_Task
1 1 224 FIFO Kthread - Waiting Signal 0000000000000000 0067536 loop_task
2 2 224 FIFO Kthread - Waiting Semaphore 0000000000000000 0067504 hpwork 0x45ae80 0x45aea8
3 3 100 FIFO Task - Running 0000000000000000 0067536 nsh_main
nsh>
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-09-28 11:28:15 +08:00
anjiahao
55df3019f9
ymodem/sbrb.py:fix a bug sendto not use
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-09-28 11:27:03 +08:00
anjiahao
85ae6f0dfd
ymodem:set the transport retry as optional
...
The waiting duration of the rb/sb command can be determined based on
the number of retransmissions, so that ymodem can restart to the normal
system after running in the bootloader for a short period of time.
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-09-28 11:27:03 +08:00
jianglianfang
e4e46c3f53
fb_main: fix draw_rect24
...
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2024-09-28 10:51:34 +08:00
yanghuatao
909e479d7f
toolchain/ghs: Fix green hills toolchain build Vela warnings
...
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2024-09-28 10:47:32 +08:00
makejian
8545512dd7
testing/crypto: add ECDSA P256 testing case for asynchronous call
...
1. Add asynchronous call test into ecdsa test case.
2. Add command line parameters to facilitate subsequent expansion.
Now can test synchronous call through 'ecdsa -s SECP256R1' and test asynchronous call through 'ecdsa -a SECP256R1'
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-28 10:46:53 +08:00
chenrun1
06d54466fd
coremark:Fix renaming issues with other libraries
...
The crc16 naming implemented in coremark is duplicated in zblue.
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
2024-09-28 09:35:33 +08:00
Huang Qi
dca6c0cd91
nshlib: Add missing newline in cmd_pidof output
...
Add newline at the end of cmd_pidof to show nsh
prompt correctly.
Before this patch:
```
nsh> pidof wifi
3 nsh>
```
After:
```
nsh> pidof wifi
3
nsh>
```
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-09-27 23:24:22 +08:00
likun17
d2214c28c5
uorb:Added 6dof motion and gesture related types.
...
For details,see: https://developer.android.com/reference/android/hardware/SensorEvent#values
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-27 13:59:30 +08:00
likun17
b28a4b4ab7
uORB: Add topic information acquisition and setting interface.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-27 13:59:30 +08:00
likun17
bccb6c6b45
uorb:Added urob loop function module and supported epoll.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-27 09:53:06 +08:00
YAMAMOTO Takashi
c03e3d0b9e
toywasm: regen
...
```
REF=d7bb4aaef08be2d7821891f17bd9ef82ac1ba358 ./regen.sh
```
2024-09-27 01:15:04 +08:00
YAMAMOTO Takashi
9656e44c9e
toywasm: bump to v63.0.0
2024-09-27 01:15:04 +08:00
wanggang26
eab2cba4a1
enable SOCK_CLOEXEC explicit
...
leaking here means fork/vfork will duplicate fd without O_CLOEXEC flag
to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-26 16:13:29 +08:00
dependabot[bot]
3f0c9306d3
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>
2024-09-26 16:12:26 +08:00
likun17
778ae8495b
monkey: monkey_log.c add LIBC_PRINT_EXTENSION dependency.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-23 23:13:55 +08:00
likun17
4253d031f0
adb: add LIBC_PRINT_EXTENSION dependency.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-23 23:13:55 +08:00
likun17
97221aa433
uORB: DEBUG_UORB add LIBC_PRINT_EXTENSION dependency.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-23 23:13:55 +08:00
simbit18
27c1720687
build.yml: Workflow aligned with nuttx repo
...
build.yml: Limit the GitHub Runners
see https://github.com/apache/nuttx/pull/13412
2024-09-23 20:42:10 +08:00
likun17
ac11e3cba9
Adapt the new header file path of va_format.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-23 14:54:06 +08:00
xuxin19
b4d794cbd5
Makefile:complete missing DEPPATH
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-23 08:41:29 +08:00
Michal Lenc
f81a094283
nshlib: add support for pkill command
...
This command looks through the currently running processes and kills
the those that match the selection criteria. This way system can send
signal to processes by name and without knowing the IDs.
Example (kill application hello):
pkill -15 hello
The command can be turned off by NSH_DISABLE_PKILL option and depends
on FS_PROCFS.
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2024-09-23 08:40:54 +08:00
wanggang26
767c8ea6ce
uorb: enable O_CLOEXEC explicit
...
to avoid potential fd leak which means fork/vfork will duplicate fd
without O_CLOEXEC flag to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-23 08:34:38 +08:00
wanggang26
bae15dfd58
nshlib: enable O_CLOEXEC explicit to avoid potential fd leak
...
leaking here means fork/vfork will duplicate fd without O_CLOEXEC flag
to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-23 08:34:16 +08:00
raiden00pl
f27e755ad7
github/workflows: add PR size labeler
...
add workflow that assigns labels based on the PR's size
2024-09-23 08:33:33 +08:00
wanggang26
864371cc10
nshlib:enable O_CLOEXEC expliciti to avoid potential fd leak
...
leaking here means fork/vfork will duplicate fd without O_CLOEXEC flag
to the child process.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-22 01:44:06 +08:00
likun17
3144c14947
listener.c: Support data saving to csv file.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-21 23:07:33 +08:00
likun17
b428af2cad
uORB: Add formatted string ("o_format") parameters and remove callback log ("cb") printing.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-21 23:07:33 +08:00
likun17
296a6b3cac
gas.c:Adapt to uORB new macro definition content.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-21 10:55:24 +08:00
Alan Carvalho de Assis
21f5bc9b70
testing/ramtest: Fix not updated CMake file
...
This issue was preventing ramtest to be displayed into
nsh (this is why all modifications need to be tested!!
"should work" doesn't work).
This is was discovered by user @nonpawite
Signed-off-by: Alan C. Assis <acassis@gmail.com>
2024-09-20 10:55:06 +08:00
wangjianyu3
b1c4e39205
examples/gps: Add default case for switch-warning of vendor extended sentence
...
Vendor may add extended sentence may not handled in switch, error if -Werror=switch enabled.
And extended sentence should not added to general examples.
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 22:11:39 +08:00
dongjiuzhu1
abdcb33f14
uORB/uORB; using array to save path for sensor_reginfo_s
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-19 11:45:49 +08:00
makejian
9a1a8d3ca3
mbedtls/psa: provides PSA method for using hardware random driver
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-19 08:36:46 +08:00
makejian
96b220659d
apps/mbedtls-alt: support cmac
...
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-19 08:36:46 +08:00
xuxin19
d3942fa1b0
module build:replace BUILD_LOADABLE with MODULES
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-19 08:32:26 +08:00
wangjianyu3
d1fc46d978
tools/mksymtab.sh: Support symbol name overriding
...
The lines start with "," make no effects(as comments)
e.g.
$ cat exports.txt | grep atan2
atan2Override,atan2
$ /PATH/TO/APPS/tools/mksymtab.sh FOO BAR exports.txt | grep atan2
extern void *atan2Override;
{"atan2", &atan2Override},
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:46:46 +08:00
wangjianyu3
7f7ff8c7d4
tools/mksymtab.sh: Support adding additional symbols that are not in undefined list
...
e.g. For CHRE dynamic nanoapps, pre-saving symbols that may be used later, no need recompiling.
Test: (unique & sorted)
$ nm ./hello_world.o | grep " U "
U __aeabi_unwind_cpp_pr1
U chreGetTime
U chreGetVersion
U chreLog
U __stack_chk_fail
U __stack_chk_guard
$ cat additional.txt -n
1 test_symbol
2 test_symbol
$ /PATH/TO/APPS/tools/mksymtab.sh ./hello_world.o MY_PREFIX -a additional.txt
#include <nuttx/compiler.h>
#include <nuttx/symtab.h>
extern void *__aeabi_unwind_cpp_pr1;
extern void *__stack_chk_fail;
extern void *__stack_chk_guard;
extern void *chreGetTime;
extern void *chreGetVersion;
extern void *chreLog;
extern void *test_symbol;
const struct symtab_s MY_PREFIX_exports[] =
{
{"__aeabi_unwind_cpp_pr1", &__aeabi_unwind_cpp_pr1},
{"__stack_chk_fail", &__stack_chk_fail},
{"__stack_chk_guard", &__stack_chk_guard},
{"chreGetTime", &chreGetTime},
{"chreGetVersion", &chreGetVersion},
{"chreLog", &chreLog},
{"test_symbol", &test_symbol},
};
const int MY_PREFIX_nexports = sizeof(MY_PREFIX_exports) / sizeof(struct symtab_s);
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:46:46 +08:00
wangjianyu3
da83fa8ab2
tools/mksymtab.sh: Check sed expression
...
sed: -e expression #1 , char 0: no previous regular expression
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:46:46 +08:00
anjiahao
ddaec5f188
apps/tools/mksymtab.sh:When generating symbols, exclude symbols that dynamic modules in bin/ call each other.
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-09-19 03:46:46 +08:00
pengyiqiang
c0d8a07042
lvgl/Makefile: support multiple options for LV_OPTLEVEL
...
This configuration is added to put LVGL into PSRAM for execution, and the lv_*.o file needs to be matched in the link script. Since LTO optimization will cause the file name to be modified, resulting in a matching failure, it will only take effect if LTO optimization is removed during compilation.
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2024-09-19 03:46:34 +08:00
pengyiqiang
eee2a2ef6b
lvgl: add customize compilation optimization level config
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2024-09-19 03:46:34 +08:00
wangjianyu3
aaf4e9d480
nshlib: Support "-f" option for command "rm"
...
In below two cases "rm" command with "-f" option will return 0:
a. Bad arguments
b. File not exists
Following "rm" of GNU coreutils 8.32
GNU coreutils
$ rm --version
rm (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html >.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Paul Rubin, David MacKenzie, Richard M. Stallman,
and Jim Meyering.
$ rm /FILE_NOT_EXISTS
rm: cannot remove '/FILE_NOT_EXISTS': No such file or directory
$ echo $?
1
$ rm -f
$ echo $?
0
$ rm -f /FILE_NOT_EXISTS
$ echo $?
0
Without this patch
nsh> rm
nsh: rm: missing required argument(s)
nsh> rm /FILE_NOT_EXISTS
nsh: rm: unlink failed: 2
nsh> echo $?
1
With this patch
nsh> rm -f
nsh> echo $?
0
nsh> rm -f /FILE_NOT_EXISTS
nsh> echo $?
0
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:45:37 +08:00
wangjianyu3
d94aa77e19
uORB/sensor: Add GNSS Geofence, Measurement & Clock.
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:42:31 +08:00
wangjianyu3
ad2514fc6f
examples/gps: Fix switch error
...
Log:
gps_main.c:83:7: error: enumeration value 'MINMEA_SENTENCE_LOR_LSQ' not handled in switch [-Werror=switch]
83 | switch (minmea_sentence_id(line, false))
| ^~~~~~
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:42:31 +08:00
wangjianyu3
8764f502d5
testing/sensortest: Rename GPS to GNSS
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:42:31 +08:00
wangjianyu3
2f280f4dc8
uORB/sensor: Rename GPS to GNSS
...
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-19 03:42:31 +08:00
likun17
027ded4d4e
sensor:Add sensor gas log output.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-19 03:42:31 +08:00
likun17
d0e15a7450
uorb:Adapt to new macro definition content.
...
Signed-off-by: likun17 <likun17@xiaomi.com>
2024-09-19 03:42:31 +08:00
wangjianyu3
dae4d7572f
module/sotest: Try devminor of romdisk
...
For case that /dev/ram${EXAMPLES_SOTEST_DEVMINOR}(e.g. /dev/ram0) already exists, and users may not care which device to use.
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-18 12:16:02 +08:00
wangjianyu3
758ed55722
examples/sotest: Fix warning of unused variable 'devname'
...
Config:
+CONFIG_EXAMPLES_SOTEST=y
+CONFIG_EXAMPLES_SOTEST_BINDIR="/data"
Log:
sotest_main.c: In function 'sotest_main':
sotest_main.c:105:8: error: unused variable 'devname' [-Werror=unused-variable]
105 | char devname[32];
| ^~~~~~~
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-18 11:36:27 +08:00