Commit graph

1175 commits

Author SHA1 Message Date
liuhaitao
8637e2a550 Merge remote-tracking branch 'remotes/mirtos/dev-nuttx-10.1-20210927' into dev
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: If5a0166dbc7c9a595db9b7758cbacaf6af278d5d
2021-10-18 22:12:06 +08:00
liuhaitao
7b3cb624e9 build.sh: correct typo errors
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: I3ebeb6535c1661bc8d87e24dc872dcbc285ddfcd
2021-10-18 20:18:28 +08:00
Xiang Xiao
1f0383ab86 sched: Remove pidhash_s and move ticks to tcb_s
simplify the code logic and reduce memory a little bit

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I3824bfb634235bd0e2daad098ce5908201abd8c1
2021-10-18 14:32:30 +08:00
yinshengkai
c40a7eb930 tool: add code coverage tool
N/A

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
Change-Id: I9388a08565508383e53b418696c14ae286b172ce
2021-09-29 16:34:00 +08:00
zhuyanlin
7401411e13 tool: checkstack: add xtensa support
N/A

Change-Id: Ic06fc91f237319709705dc4ee79141ff47801ca4
2021-09-27 15:07:43 +08:00
liuhaitao
999fe1f9f8 Merge remote-tracking branch 'mirtos/master' into dev
Last commit id:
commit 649f99ce30 (mirtos/master)
Author: FASTSHIFT <vifextech@foxmail.com>
Date:   Wed Sep 22 15:38:43 2021 +0800

    libc/misc: add lib_glob.

    Signed-off-by: FASTSHIFT <vifextech@foxmail.com>

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: I2f584a4432f835c661e3c02cf7324d5e92e9c738
2021-09-26 21:59:56 +08:00
Abdelatif Guettouche
44268bac1f tools/ci/Docker: Download the latest ESPxx Xtensa toolchain 2021-09-24 18:17:22 -03:00
Abdelatif Guettouche
6526966987 tools/ci/cibuild.sh: Update the downloaded ESP Xtensa toolchain.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-09-24 18:17:22 -03:00
Gustavo Henrique Nihei
86518bdf25 tools: Trigger clean_bootloader on distclean for supported chips
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-24 10:48:19 -07:00
Gustavo Henrique Nihei
8816f21ba2 tools: Add new make targets for handling bootloader-related operations
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-23 20:52:25 -07:00
liucheng5
b42d2a7284 fix: nxstyle: detect --,->,++ not next to operand
The nxstyle check tool can't recongnize the style error that --, -> or ++ is not next to the operand. For example, "idx ++;", "p ->member" or "(-- idx)", which is in incorrect style, is not recongnized. This patch add detection for these cases.

Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2021-09-19 11:06:05 -04:00
liuhaitao
905d956ee7 checkpatch.sh: add -m option to enable/disable Change-Id check
Defaultly disable Change-Id check in commit message.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: Ic16f9cc9abc7d27c4e3e6ded27b8e27f2a1e312d
2021-09-18 17:17:48 +08:00
liucheng5
bd6f56907a fix: nxstyle: detect --,->,++ not next to operand
N/A

The nxstyle check tool can't recongnize the style error that --, -> or ++ is not next to the operand. For example, "idx ++;", "p ->member" or "(-- idx)", which is in incorrect style, is not recongnized. This patch add detection for these cases.

Change-Id: Ic6b71ddeca95db9057b4b707a670891a03b8d6a4
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2021-09-18 16:16:13 +08:00
zhuyanlin
ac0af22180 build:xtensa: remove build warning
./build.sh: line 67: [: too many arguments

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
Change-Id: I83cab068c73b4f5a0261107625ad94eb28fe20c4
2021-09-18 10:12:07 +08:00
Huang Qi
c74bb5ccec tools/build.sh: Add WASI_SDK_ROOT env variable
VELAPLATFO-120

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I312bd9eeaea41c9c2a8fc7573079eec75cf3ed80
2021-09-17 10:59:29 +08:00
Takayoshi Koizumi
7a68470e89 mkromfsimg: Add optional rcS file path
Add an option to mkromfsimg.sh to specify the target rcS file path.
2021-09-13 08:50:36 +08:00
Abdelatif Guettouche
cca3fa36ce tools/espXX/Config.mk: Refactor the flash options.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-09-08 09:25:28 -03:00
Gustavo Henrique Nihei
adef19704d tools/esp32[s2,c3]: Extract POSTBUILD operations into functions
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-08 12:16:52 +02:00
Gustavo Henrique Nihei
310a2dd0e4 tools/esp32c3: Create option for merging all binaries into a single file
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-08 12:16:52 +02:00
Gustavo Henrique Nihei
12b4d22757 tools/esp32s2: Create option for merging all binaries into a single file
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-08 12:16:52 +02:00
Gustavo Henrique Nihei
6de75d9932 tools/esp32: Add nuttx.signed.bin to the manifest file
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-08 12:16:52 +02:00
Gustavo Henrique Nihei
c0344d2273 tools/esp32: Create option for merging all binaries into a single file
This is only useful when the path to binary files (e.g. bootloader) is
provided via the ESPTOOL_BINDIR variable.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-08 12:16:52 +02:00
zhuyanlin
24b658f023 makefile: let clean_context in distclean command
In multi-jobs build, `distclean` may be faster than `clean_context`,
Fix the case `distclean` use the dirctorys that have been
removed by `clean_context` in board/xtensa with xt-xcc
2021-09-08 11:40:10 +08:00
liuhaitao
5e67443c71 checkpatch.sh: add check gerrit Change-ID support
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: Iaf6ebbee9337fb021b171385626d7c5bf8860e2c
2021-09-08 10:34:36 +08:00
yangjiukui
014d6d026c tools/nxstyle: Fix the check tool incorrectly reported no alignment.
The nxstyle check tool recognizes the division operator as
a comment. Check the following content to determine whether
it is a comment.

Change-Id: Id07c6668489895b45a1042794bc3acca66cd3c47
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com>
2021-09-08 09:45:06 +08:00
liuhaitao
a48d81b9ad checkpatch.sh: add check gerrit Change-ID support
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-09-08 09:44:47 +08:00
yangjiukui
d699e7ed62 fix: nxstyle: recognize the division operator as a comment.
N/A

the nxstyle check tool recognizes the division operator as
a comment, check the following content to determine whether
it is a comment.

Change-Id: Id07c6668489895b45a1042794bc3acca66cd3c47
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com>
2021-09-07 11:49:41 +08:00
liucheng5
fdb9576d7a feature: driver: Add a Linux SPI into simulator.
When SIM_SPI is valid, a specified Linux SPI device ‘spidevN.P’(N is bus number and P is CS number) is attached to nuttx simulator, shown as 'spi0' under /dev. One may type spi command (need SPITOOL valid) in NSH to control the Linux SPI and exchange data, other devices such sensors can use it to debug in simulator on a Ubuntu PC. Note that a USB<>SPI module (e.g. CH341A/B) should be plugged in to achieve Linux SPI ports.

Change-Id: I275b2c2bbf6d14bcdf514c89efb9a2264d69e9a3
Signed-off-by: liucheng5 <liucheng5@xiaomi.com>
2021-09-03 18:15:25 +08:00
chao.an
3478386698 tools/checkstack.pl: handle the <stmdb> instruct properly
Change-Id: Id34b04134c7bd164598da52c682fd0b7711415f2
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-09-03 00:05:22 +08:00
Alin Jerpelea
87f173f430 tools: update licenses to Apache
Ken Pettit has submitted the ICLA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-09-02 21:56:05 +08:00
zhuyanlin
5c5975d887 makefile: let clean_context in distclean command
In multi-jobs build, `distclean` may be faster than `clean_context`,
Fix the case `distclean` use the dirctorys that have been
removed by `clean_context` in board/xtensa with xt-xcc
2021-09-02 15:05:33 +08:00
Xiang Xiao
6822075cc8 tools/checkstack.pl: Add riscv arch support
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I8a7b51e1b75aee4bab42e85b1266e94c578c60f1
2021-09-02 14:45:10 +08:00
Xiang Xiao
64144bbc4e tools/checkstack.pl: Correct the usage comment
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I08221d9175647d9081338e9b031e10e3500b8e32
2021-09-02 14:26:42 +08:00
Xiang Xiao
02b3c5ad70 tools/checkstack.pl: Support thumb2 function prologue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie4fc9e39f4ef3490013425d2c8444a53d4ab6568
2021-09-02 14:26:42 +08:00
Gustavo Henrique Nihei
8af91aae3d tools/ci: Omit error message when tool is not found
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-02 14:21:58 +08:00
Gustavo Henrique Nihei
08ae93c1de tools/ci: Fix issues reported by ShellCheck
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-02 14:21:58 +08:00
Gustavo Henrique Nihei
98c30c2f7e tools/esp32: Rename signed binary image to match clean pattern
This is just a workaround for adding the MCUboot signed binary image to
the clean step of the build system. Once the NuttX build system becomes
aware of general signed images, a new naming pattern should be defined
for the signed images to be used by every platform.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-09-01 14:13:28 -03:00
Gustavo Henrique Nihei
23effc505c tools/ci: Install imgtool for CI build
This is mainly required for macOS builds which do not rely on a base
Docker image that would contain imgtool already preinstalled.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-31 11:21:58 +08:00
Gustavo Henrique Nihei
bdbbc3e514 tools/ci: Add imgtool to Docker image
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-31 11:21:58 +08:00
Xiang Xiao
4af9246ce1 openamp: Move the download to context target
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-30 02:09:43 +08:00
Xiang Xiao
a941c93f72 openamp: Move the download to context target
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-29 20:02:24 +02:00
Abdelatif Guettouche
6af1bd5666 libs/libxx: Download C++ libraries during context.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-29 21:29:20 +08:00
Alin Jerpelea
dc590e6414 tools: cxd56: update licenses to Apache
Sony has submitted the SGA and we can update the remaining licenses
to Apache

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-08-27 02:56:22 +08:00
zhuyanlin
2431b8e5b7 build.sh: support clang build
N/A

Change-Id: Ibaad1991e99cca8f6ffc7e4cf6357df36ea85eb9
2021-08-25 20:40:42 +08:00
Xiang Xiao
2d1f4219d5 tools: Add checkstack.pl from linux kernel scripts folder
you can get the stack usage by:
objdump -d nuttx | tools/checkstack.pl [arch] [minstack]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I27c60ec4f1a7c34fcff3f3012e4440e4fc48bb82
2021-08-23 00:50:43 +08:00
Abdelatif Guettouche
15fb70cb00 libs/libxx: Download C++ libraries during context.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-19 03:05:54 -07:00
YAMAMOTO Takashi
c073b36741 tools/esp32/backtrace.gdbscript: Add a few convenient functions 2021-08-16 11:01:13 +02:00
Abdelatif Guettouche
6b412c873b tools/esp32/Config.mk: Bring back the old behaviour where ESPTOOL_BINDIR
can be omitted from the command line when flashing.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-13 20:46:51 -03:00
Abdelatif Guettouche
11fe075e5e tools/esp32/Config.mk: Remove an unused option.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-13 20:46:51 -03:00
Gustavo Henrique Nihei
1dfcc6ab49 xtensa/esp32: Enable boot from Espressif's port of MCUboot
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-13 08:44:20 -03:00