YAMAMOTO Takashi
b7f57a1952
examples/posix_spawn: -fno-builtin for a file generated by mksymtab.sh
2022-05-12 23:12:39 +08:00
YAMAMOTO Takashi
8e6081abe0
examples/module: -fno-builtin for a file generated by mksymtab.sh
2022-05-12 23:12:39 +08:00
YAMAMOTO Takashi
adf7ceedf4
examples/elf: -fno-builtin for a file generated by mksymtab.sh
2022-05-12 23:12:39 +08:00
YAMAMOTO Takashi
6a25898568
Revert "tools/mksymtab.sh: Disable the mismatch warning of builtin declaration"
...
This reverts commit a6773a8412
.
Unnecessary after "Use -fno-builtin for SYMTABOBJ"
2022-05-12 23:12:39 +08:00
YAMAMOTO Takashi
5ee2e6348f
Use -fno-builtin for SYMTABOBJ
...
The code generated by tools/mksymtab.sh uses
```
extern void *var;
```
for ~everything.
After the recent removal of -fno-builtin, [1]
it ends up with warnings:
* -Wbuiltin-requires-header for clang
* -Wbuiltin-declaration-mismatch for gcc
It also generates errors like the following for clang:
```
symtab_apps.c:125:14: error: redefinition of 'strdup' as different kind of symbol
extern void *strdup;
```
I couldn't find a way to disable it.
(it's err_redefinition_different_kind in clang source)
This commit works it around by restoring -fno-builtin
when building SYMTABOBJ.
[1] https://github.com/apache/incubator-nuttx/pull/5476
2022-05-12 23:12:39 +08:00
chao.an
725fe76b91
trace: format the usage output
...
before:
Usage: trace <subcommand>...
Subcommand:
start [-c][<duration>] : Start task tracing
stop : Stop task tracing
dump [-a][-c][<filename>] : Output the trace result
[-a] <Android SysTrace>
mode [{+|-}{o|w|s|a|i|d}...] : Set task trace options
switch [+|-] : Configure switch trace filter
syscall [{+|-}<syscallname>...] : Configure syscall trace filter
irq [{+|-}<irqnum>...] : Configure IRQ trace filter
print [+|-] : Configure dump tnsh>
after:
Usage: trace <subcommand>...
Subcommand:
start [-c][<duration>] : Start task tracing
stop : Stop task tracing
cmd [-c] <command> [<args>...] : Get the trace while running <command>
dump [-a][-c][<filename>] : Output the trace result
[-a] <Android SysTrace>
mode [{+|-}{o|w|s|a|i|d}...] : Set task trace options
switch [+|-] : Configure switch trace filter
syscall [{+|-}<syscallname>...] : Configure syscall trace filter
irq [{+|-}<irqnum>...] : Configure IRQ trace filter
print [+|-] : Configure dump trace filter
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-05-12 14:55:34 +08:00
chao.an
089c05cbd8
system/trace: correct arg index if command is alreay set
...
An error occurs when the same command is executed twice
$ trace switch +
$ trace switch +
Usage: trace <subcommand>...
Subcommand:
start [-c][<duration>] : Start task tracing
stop : Stop task tracing
dump [-a][-c][<filename>] : Output the trace result
[-a] <Android SysTrace>
mode [{+|-}{o|w|s|a|i|d}...] : Set task trace options
switch [+|-] : Configure switch trace filter
syscall [{+|-}<syscallname>...] : Configure syscall trace filter
irq [{+|-}<irqnum>...] : Configure IRQ trace filter
print [+|-] : Configure dump tnsh>
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-05-12 14:55:34 +08:00
chao.an
8ce86fe572
system/sched_note: fix build break
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-05-12 14:55:34 +08:00
Takayoshi Koizumi
5040719911
audioutils/mml_parser: Add mml_parser library
...
Add Music Macro Language parser library in audioutils.
audioutils is also created for several audio utilities
not only mml_parser.
2022-05-07 13:56:53 +08:00
Jiuzhu Dong
1444e0dc76
apps/nshlib: fix unreachable code about i++
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-05-07 08:36:42 +03:00
Jiuzhu Dong
1f093da6a4
Revert "apps/nshlib: fix unreachable code about i++"
...
This reverts commit 467de8ca83
.
2022-05-07 08:36:42 +03:00
Jiuzhu Dong
b3a5b56ff3
apps/nshlib: fix warning by tool converity report
...
uninit_use_in_call addr before call netlib_set_ipv4addr at line 780
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-05-07 10:30:47 +08:00
Jiuzhu Dong
234e297cd9
apps/nshlib: fix warning by tools converity report
...
uninit_use_in_call inaddr.sin_zero before call
netlib_set_arpmapping
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-05-07 10:30:47 +08:00
Jiuzhu Dong
467de8ca83
apps/nshlib: fix unreachable code about i++
...
Report by the tool coverity
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-05-07 10:30:47 +08:00
Xiang Xiao
385603666b
system: Add gcov command
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-05-04 18:08:07 +03:00
Xiang Xiao
0e9946956a
.gitignore: Ignore gcov files(*.gcno and *.gcda)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-05-03 16:11:28 +03:00
Ville Juven
e2f0ae3816
import/Make.defs: Fix C++ library linkage with CONFIG_BUILD_KERNEL
...
Encapsulate link libraries with start/end group
2022-04-29 12:09:15 +03:00
zhuyanlin
a5a4c561fb
pmconfig: add mulit domain support
...
pmconfig [domain]
pmconfig relax/stay state [domain]
Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
2022-04-28 00:36:36 +08:00
zhouliang3
426cc840d8
apps/ping: fix ping statistics error problem
...
nsh> ping 192.168.31.162
PING 192.168.31.162 56 bytes of data
56 bytes from 192.168.31.162: icmp_seq=0 time=8 ms
56 bytes from 192.168.31.162: icmp_seq=1 time=27 ms
56 bytes from 192.168.31.162: icmp_seq=2 time=17 ms
56 bytes from 192.168.31.162: icmp_seq=3 time=14 ms
56 bytes from 192.168.31.162: icmp_seq=4 time=16 ms
56 bytes from 192.168.31.162: icmp_seq=5 time=14 ms
56 bytes from 192.168.31.162: icmp_seq=6 time=8 ms
56 bytes from 192.168.31.162: icmp_seq=7 time=87 ms
WARNING: Received after timeout
56 bytes from 192.168.31.162: icmp_seq=8 time=1003 ms
56 bytes from 192.168.31.162: icmp_seq=8 time=6 ms
56 bytes from 192.168.31.162: icmp_seq=9 time=5 ms
10 packets transmitted, 11 received, 4294967287% packet loss, time 10011 ms
Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
2022-04-25 22:12:42 +08:00
Petro Karashchenko
7eda43768a
interpreters/ficl: add double include guard to nuttx.h
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-24 09:48:56 +08:00
Abdelatif Guettouche
473611d51d
system/ping: Guard against division by zero when calculating the RTT.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2022-04-23 20:17:45 +03:00
Xiang Xiao
1acca2946e
Update the call site of exec to accommodate the environment variables
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-04-22 10:40:38 +03:00
Alin Jerpelea
d60fb1168d
nxstyle fixes
...
fixes for nxstyle errors reported by CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
73887c15e0
LICENSE: add license for chat
...
document the license in the LICENSE file
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
fa5fb8fc4b
LICENSE: add license for wapi
...
document the license in the LICENSE file
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
d5560b97ad
LICENSE: add license for gpsutils
...
document the license in the LICENSE file
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
8c09bddeb8
LICENSE: add license for netutils
...
document the license in the LICENSE file
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
1d1b25724e
LICENSE: add license for zmodem
...
document the license in the LICENSE file
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
0baea75f5c
LICENSE: add license for ubloxmodem
...
document the license in the LICENSE file
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
f3330cbca4
LICENSE: add license for telnet
...
document the license in the LICENSE file
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
f0f08b5ee9
LICENSE: add license for tee
...
document the license in the LICENSE file
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
b99070589a
graphics: nxglyphs: Add Apache License
...
The initial contribution was missing a license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
54ce2e0ab9
nshlib: Add Apache License
...
The initial contribution was missing a license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
7c46bbc34d
include: netutils: pppd.h: update license to Apache
...
Brennan Ashton has signed the ICLA. As a result we can migrate the
license to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
e07ac9bc96
platform: dummy: Add Apache License
...
The initial contribution was missing a license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Alin Jerpelea
26e4e29c95
interpreters: ficl: Add Apache License
...
The initial contribution was missing a license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00
Petro Karashchenko
84e0e50995
make: update makefiles for mcuboot and libtomcrypt
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-21 21:11:58 +08:00
Ville Juven
0957a740cb
nshlib/nsh_fileapps.c: Pass global environ instead of NULL for posix_spawnp
...
Now that the environ pointer is a list of pointers-to-string, it can be
passed to the standard posix_spawn function as-is.
2022-04-21 20:58:05 +08:00
Jiuzhu Dong
9f79bf183a
nsh/script: support rc.sysinit script
...
Follow: http://glennastory.net/boot/sysinit.html
This is first script that init runs is rc.sysinit. This
script does serval initialization tasks about basic service.
The boot sequence currently provided to the board level is:
board_earlyinitialize->
board_lateinitialize(Peripherals driver, core driver, ...)->
run rcS script(mount fs, run service) ->
board_appinitialize->
After this patch:
The boot sequence currently provided to the board level is:
board_earlyinitialize->
board_lateinitialize(core driver,...)->
run rc.sysinit script(mount fs, run core service) ->
board_appinitialize(Peripherals driver)->
run rcS script(run other service)->
So, Peripheral drivers can do more with the file system and
core services.
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-04-21 12:54:24 +03:00
Huang Qi
768a21b587
system/i2c: Fix fd leak in i2ccmd_reset
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-04-19 14:53:51 +03:00
Huang Qi
c7413ee859
system/critmon: Fix dead code
...
Remove branch since errcount could never bigger than 100.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-04-19 18:21:00 +08:00
chao.an
e4dcdcd158
testing/ostest: remove CONFIG_TESTING_OSTEST_FPUSIZE
...
fptest should not need to care about the size of FPU
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-19 02:48:24 +08:00
Xiang Xiao
3760ab5fc8
Remove the unneeded void cast
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-04-17 23:31:35 +03:00
zhanghongyu
b80ef1df87
usrsock: Don't clear recv and send available flag
...
Don't clear available flag if the response indicate there is more data
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-04-16 14:07:48 +08:00
chao.an
ab5e7496d5
Makefile/Application: correct COMPILER_RT_LIB PATH
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-16 00:33:00 +08:00
songlinzhang
460f631fa3
netutils/usrsock_rpmsg: broadcast the client DNS server to server
...
Signed-off-by: songlinzhang <songlinzhang@xiaomi.com>
2022-04-15 16:05:38 +08:00
Masayuki Ishikawa
7663f993f7
wireless: gs2200m: Fix recvfrom_request() in gs2200m_main.c
...
Summary:
- I noticed that wget causes ASSERT in gs2200m_main.c recently.
- Finally, I found that it sends a wrong ack message in
recvfrom_request() when the socket is closed passively
- This commit fixes this issue.
Impact:
- gs2200m only
Testing:
- Tested with spresense:wifi_smp
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2022-04-15 10:36:52 +03:00
chao.an
b8b9d45706
netutils/ping: skip the id check
...
https://joekuan.wordpress.com/2017/05/30/behaviour-of-identifier-field-in-icmp-ping-as-udp-between-linux-and-osx/
https://lwn.net/Articles/443051/
https: //github.com/apache/incubator-nuttx-apps/blob/master/netutils/ping/icmp_ping.c#L298
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-04-14 23:23:07 +03:00
zrrong
d17c9509f6
wireless/wapi: fix wapi wpa_wconfig_s alg data type error
...
Signed-off-by: zrrong <zrrong@bouffalolab.com>
2022-04-14 18:24:33 +03:00
田昕
cc7653b8c7
fix resetcause nsh command print
...
Signed-off-by: 田昕 <tianxin7@xiaomi.com>
2022-04-14 16:43:45 +03:00