Commit Graph

500 Commits

Author SHA1 Message Date
latercomer f0e6d772f3 mkdist和sdk_dist支持kconfiglib语法 2024-06-20 14:40:42 +08:00
maosql 564121050c fix DeprecationWarning: invalid escape sequence. 2024-06-10 14:26:44 +08:00
Astrozen ce913b95c7
[tools/cmake] fix the issue of the missing link flags added in Sconscript (#8957) 2024-05-21 08:58:26 +08:00
Meco Man 634f50572e
[tools] fix env toolchain path parse issue (#8936) 2024-05-11 16:06:23 +08:00
Bernard Xiong 73153ac06a
[tools] fix the issue of cc detection failure in Windows (#8914) 2024-05-08 10:50:45 +08:00
Shell 6977cf9101
[src] add rt_hw_cpu_id() wrapper API (#8894)
* [src] add rt_hw_cpu_id() wrapper API

rt_hw_cpu_id() is an unsafe API which should not be used by most codes
directly. It's error-prone because it must be used in proper context,
otherwise it can lead to errors and unpredictable behavior.

This patch adds a wrapper API for rt_hw_cpu_id() to address this risk.
It includes the context-checking functionality and provides a safer
alternative for obtaining CPU IDs, ensuring that it is used correctly
within the appropriate context.

Signed-off-by: Shell <smokewood@qq.com>

* fixup UMP

* update API & comment

* ci: cpp_check

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-05-08 09:22:09 +08:00
bernard c4e7a0e5e3 [tools] Add --cdb to make compile_commands.json. 2024-05-03 20:17:23 -04:00
Shell ee8c61126d
[tools] fix menuconfig error on vscode console (#8843)
Signed-off-by: Shell <smokewood@qq.com>
2024-04-23 23:08:57 +08:00
latercomer 3ff2b08d82 [clang-format] 增加clang-format格式化配置,通过ide或者手动运行tools/run-clang-format.py进行代码自动格式化 2024-04-21 01:18:37 -04:00
bernard 582d11faad [tools] fix EXEC_PATH exists, but the CC does not. 2024-04-20 14:39:28 -04:00
Bernard Xiong b76dca8f4f
[tools] Add toolchain detection in sdk packages (#8827) 2024-04-21 00:53:17 +08:00
LaterComer 6311bcaf24
将scons --menuconfig/--pyconfig/--pyconfig-silent统一调用kconfiglib 2024-04-18 20:48:32 -04:00
bernard 8d1d75fc40 [tools] Add install env script 2024-04-05 00:54:01 -04:00
Shell 864055bf18
[fixup] aarch64 UMP compiler error (#8677)
Signed-off-by: Shell <smokewood@qq.com>
2024-03-30 17:58:38 +08:00
Shell 83e95bdff4
sync smart & dfs (#8672)
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-03-28 23:42:56 +08:00
Rbb666 d31c05a44c [tools]Fix project compilation errors generated by mdk and iar 2024-03-05 19:53:53 -05:00
idings 0e409a6eb1 [libc][tools] fix compile error on python2 env 2024-01-26 18:32:28 +08:00
Rbb666 74be1633ae [tools]修复rt-studio导入bsp工程缺失{cross_toolchain_flags}字段问题 2024-01-22 17:09:54 +08:00
Shell 396a52cedb fixup: static anaylysis CI 2024-01-16 00:59:18 +08:00
vacabun acaa23052f
[ci][bsp_build]attachconfig add scons args parsing (#8464) 2024-01-09 22:03:32 +08:00
guotong ma 2d55efba84 [ci][attachconfig]support subfolders 2023-12-28 23:51:56 +08:00
Yuqiang Wang 10aa4b9da1
[libc] Fix the MPU's rtconfig.h file identification problem in the script (#8436) 2023-12-28 17:18:58 +08:00
Meco Man ed4d037d7b [ci][stm32f407] add attach config CI check 2023-12-26 23:13:08 +08:00
Meco Man 0b8fbee344 [ci] silent pkgs --update when building bsp 2023-12-25 23:24:30 +08:00
guotong ma 18c44e6cee [ci][attachconfig] remove some output 2023-12-25 15:21:16 +08:00
guotong ma 00bb3c6224 [ci][attachconfig]del debug time 2023-12-25 12:07:22 +08:00
kurisaW 60910d0732 [ci][attachconfig] remove pkgs upgrade everytime 2023-12-25 10:07:32 +08:00
vacabun 2693e7e15a
[ci]Add bsp attachconfig check 2023-12-24 22:43:40 +08:00
xqyjlj e31fa93423
feat: spinlock should lock sched (#8360) 2023-12-22 11:15:18 +08:00
zhkag 4bd5c31dac [tools] format the options
- format command options
    - rename the --add_rtconfig as --global-macros
2023-12-06 15:35:04 +08:00
Meco Man ea50473dc4
[ci] add error code check (#8341) 2023-12-06 13:52:30 +08:00
Meco Man 860094e893 [stm32] split stm32 drivers as normal and nano drivers
- move all normal drivers (devices framework drivers) into drivers
  folder.
- create nano folder for nano drivers
  nano drivers are only for a simply wrap of the HAL function, and
  not seek for adopting rt-thread devcies framework.
- provide unified nano console and GPIO drivers.
2023-12-03 21:25:00 +08:00
guozhanxin 0b1a49ed66 [tools/gcc.py]fix scons error. 2023-11-14 09:45:05 -05:00
Xiang.Lin da55491608
[libc][picolibc] improve gcc picolibc support 2023-11-08 02:09:09 -05:00
1ridic 1d0924c12a
[tools] Enable prebuilding action (#8133) 2023-10-23 14:06:46 +08:00
liYangYang 9afd38455d
[tools] 增加vscode pyocd下载命令 scons --target=vsc --pack=xxx 2023-10-22 10:58:16 -04:00
guozhanxin 21facce472 [tools] support LLVMEmbeddedToolchainForArm-17.0.1 2023-10-19 12:14:01 -04:00
1ridic dee82b8a26 [tools] Correct prompt message
After running "menuconfig", a message prompting you to
run "make" appears, which can be confusing.  Correct
prompt message to make it clear.
2023-09-26 10:08:17 +08:00
Meco Man dc407966fa [tools][gcc.py] avoid dist failure when try to dist MDK/IAR project.
Because for MKD/IAR project, in the rtconfig.py, there is no rtconfig.PREFIX defined.
2023-09-15 08:52:48 -04:00
Meco Man 77f31f8d8f [env][dist] adjust dist sequence 2023-09-15 08:52:48 -04:00
Meco Man c19c907b62 [env] remove --dist-strip command 2023-09-15 08:52:48 -04:00
1ridic ec9bbaceda
[tools] support Env for fish shell 2023-09-14 09:18:20 -04:00
Meco Man 30c793fdb9 [tools] add GetGCCLikePLATFORM
GCC like means the toolchains which are compatible with GCC
2023-08-21 01:25:52 -04:00
Meco Man 290678b665 [tools][gcc] remove legacy functions
- GenerateGCCConfig
- GenCconfigFile
2023-08-21 01:24:46 -04:00
GUI 6f119d4ce9
AArch64: support public linker scripts (#7831)
Signed-off-by: GuEe-GUI <GuEe-GUI@github.com>
2023-07-25 21:31:44 +08:00
Meco Man 65238275ac [tools] --project-name= can use name with space 2023-07-23 22:54:27 -04:00
Meco Man 86f127311d [tools][mdk] fix .uvoptx/uvopt project name
e.g. scons --target=mdk5/4 --project-path='test'
will generate the test.uvoptx/uvopt file correctly
2023-07-23 22:54:27 -04:00
dejavudwh 4cbc1893bd Added CI to compile more drivers for the changed BSP 2023-06-28 22:07:02 -04:00
shiwa f4294c6abc
[tool][cdk.py] scons的CDK工具宏定义改用分号作分隔符,并支持LIBS (#7610) 2023-06-09 08:59:32 +08:00
Meco Man 8768d631d0 [tools][keil] fix cannot select c99 and gnu choice in Keil-MDK 2023-05-25 12:16:41 -04:00