Commit graph

1138 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
zhuyanlin
9e2d5e4e7e build.sh: add license file and set EXTRAFLAG when arch is xtensa.
Change-Id: I3c93f78297d4216b4b1ad25532aa3f2e23bb4d54
2021-08-05 14:06:59 +08:00
liuhaitao
3ad890d10f Make top Make.defs symlink to board Make.defs instead
Symlink to board Make.defs for top Make.defs, so top Make.defs
syncs in realtime.

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: I379997dbc969d97f5b469286e1c99b91f75e059a
2021-07-28 16:52:15 +08:00
Xiang Xiao
c8f1eeed57 Merge commit '2e43815c92' into dev
Change-Id: Idcbac12fec435abff01cfb4efd5a26a02eb08f93
2021-07-13 03:14:34 +08:00
YAMAMOTO Takashi
0e76a16545 tools/esp32/backtrace.gdbscript: don't modify registers
* it wasn't intended.

* it doesn't always work:

    (gdb) source tools/esp32/backtrace.gdbscript
    (gdb) esp32_bt 0x40139706 0x80139811 0x3ffafd40
    Attempt to assign to an unmodifiable value.
    (gdb)
2021-06-28 01:11:34 -05:00
Gustavo Henrique Nihei
817d81d38f tools/ci: Revert workaround for issue with avr-binutils
avr-binutils homebrew recipe has been fixed upstream:
https://github.com/osx-cross/homebrew-avr/issues/243

This reverts commit 37e30ccc54.
2021-06-12 07:16:23 +09:00
Alexander Lunev
1bb23a7a33 boards: lm3s6965-ek: added config to run NuttX with enabled NXFLAT binary loader mode on QEMU;
Conditionally turn off -mpic-data-is-text-relative flag to access bss via the GOT
(https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=139630111).

This is related to issue #3737.
2021-06-09 12:03:35 -05:00
Gustavo Henrique Nihei
37e30ccc54 tools/ci: Workaround conflict with x86_64-elf-binutils after avr-gcc
version bump
2021-06-04 21:04:32 -07:00
liuhaitao
622c4593f1 buildinfo.sh: update ro.build.version and ro.build.id macros
Change-Id: Iee74ba0ae3d5acf13867330ac076f44f5bb1ee31
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-06-02 15:12:22 +08:00
liuhaitao
78b51550c3 buildinfo.sh: add ro.build.id support
ro.build.id used by velaos build version since ro.build.version
used by miai version build.

Change-Id: I317c50d130ef386fdfa3569fdd5552982ab0a62f
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
(cherry picked from commit bbd72a9b4f51e065451cf5bfef3e0a2dcd0e16f6)
2021-06-02 15:11:31 +08:00
Abdelatif Guettouche
2004acdeb1 boards/esp32s2: Remove anything that has to do with QEMU since it's not
supported.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-01 12:43:15 -05:00
Abdelatif Guettouche
9f4a5e67da docker/linux: Add ESP32-S2 toolchain and binaries.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-06-01 09:08:52 -05:00
Abdelatif Guettouche
8347a56bc0 Improve and remove not necessary board configuration 2021-06-01 07:49:54 +02:00
Nakamura, Yuuichi
72d2fc547e tools/mksyscall: Fix build break of syscall instrumentation wrapper 2021-05-31 22:36:50 -05:00
liuhaitao
13f2aa3d35 build.sh: correct board for sdk since custom boards used now
Change-Id: Ib920048966ed1b17cd0ff4c5533ec4e915fb52a9
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-05-28 14:05:42 +08:00
Alin Jerpelea
cde107f96b tools: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-05-27 08:07:25 +09:00
liuhaitao
034fa07b2f Revert "tools/mkdeps: generate the full path dependencies"
Revert it to make distclean rightly.

This reverts commit b26784fc05.

Change-Id: Ib389830c026c6907f6b31d01e3129902e96699ed
2021-05-21 16:19:19 +08:00
Xiang Xiao
b3e1d1c3df tools/ci: Remove sim01.dat and sim02.dat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-16 21:03:22 -07:00
Xiang Xiao
09a0ed111c tools/ci: Rename sim0x.dat to sim-0x.dat to align with arm-xx.dat
To avoid the build break sim0x.dat will remove in the upcoming patch

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-16 10:39:16 -07:00
Gustavo Henrique Nihei
b5ee9b673c tools: Add a bash completion script for the configure tool 2021-05-15 08:37:39 -03:00
Xiang Xiao
2f65c3dd74 boards/sim: Remove the hardcode platorm config
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-13 10:44:16 -05:00
Matias N
4befbdfa4b docker: add ninja-build 2021-05-12 11:30:53 -07:00
Gustavo Henrique Nihei
f547883747 tools/nxstyle: Extend check to any URI scheme 2021-05-07 19:38:10 -07:00
liuhaitao
8ec76ce297 Config.mk: restore ARCHIVE to fix build break
Change-Id: Iafae4f4c48afb0df8b169ec1106e348cc4c0fc9e
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-05-07 22:22:01 +08:00
chao.an
b26784fc05 tools/mkdeps: generate the full path dependencies
Change-Id: I60ff42c40ea8071ac86e6e06aafeb2a9f4ec3698
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-07 21:39:35 +08:00
liuhaitao
dc639b2b59 Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.1-0507
Change-Id: I4bb3a61356be2b4a77ccfe45390b15e68a376dd6
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-05-07 20:46:07 +08:00
Gustavo Henrique Nihei
886009f15f tools/nxstyle: Add _Atomic keyword to whitelisted words 2021-05-06 06:48:59 -07:00
Abdelatif Guettouche
1ea25a83fe tools/esp32/mk_qemu_img.sh: Group the offsets in variables. 2021-05-03 11:11:32 -03:00
Abdelatif Guettouche
f08aa47927 tools/esp32/mk_qemu_img.sh: Refactor the dd commands and suppress all the
status output.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-05-03 11:11:32 -03:00
Matias N
3fef111509 docker: add cmake 2021-04-22 14:31:17 -07:00
chao.an
692856a626 tools/nxstyle: rename exception _Unwind_Ptr to _Unwind to support fuzzy match
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-04-19 04:45:04 -07:00
jturnsek
61b0e530b0 Default config without flexspi and mtd 2021-04-14 14:57:26 -07:00
Jukka Laitinen
8334843bad Make noreturn proxies and stubs actually not return
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2021-04-12 03:57:35 -05:00