Commit Graph

180 Commits

Author SHA1 Message Date
Man, Jianting (Meco) 055267f049
[compiler] 增加SConscript依赖标志 AddDepend (#6534)
* [compiler] 增加SConscript依赖标志 AddDepend

* RT_USING_NEWLIB->RT_USING_NEWLIBC RT_USING_ARM_LIBC->RT_USING_ARMLIBC

* 删除过时的板载测试例程

* [gd32] 移除无用的反汇编文件

* [bsp]移除老旧bsp中对RT_USING_NEWLIBC的手动宏定义
2022-10-25 00:01:37 -04:00
Meco Man 6b60aab136 [dist-ide] 优化导出RTThread Studio工程命令
- 导出rtstudio工程时,多增加一级目录,防止BSP本地Sconscript和导出的工程的Sconscript粘接 导致编译出错
- 增加命令别名 --dist-rtstudio 该命令和 --dist-ide命令执行一致,方便用户理解,--dist-ide IDE表示的内容过于宽泛
2022-10-08 22:33:28 -04:00
YangZhongQing b9cd2b6016 build: EndBuilding need_exit after GenTargetProject
User choice IDE build, after GenTargetProject there's no need to do the rest.
并且,既然用户指定了IDE,接下来的命令行编译却仍然是使用arm-none-eabi-gcc,为什么不是用IDE的编译器呢?(也许是个bug)
2022-09-29 21:03:38 -04:00
Meco Man c38259d336 [tools] 增加scons --exec-path=xxx命令 用于动态设置编译链路径
scons --target=iar --exec-path=xxxx
scons --exec-path=xxxx
2022-09-22 22:57:09 -04:00
Meco Man e4b1128486 [iar] 修正IAR编译链名称 2022-09-15 23:54:35 -04:00
tangzz98 cb7fd304ff
ESP32_C3 migrate to ESP-IDF package (#6427) 2022-09-14 03:49:05 -04:00
childerxxx 5e3622402d [tools/link-order] Sort objects so that compilation can be done in a fixed link order. 2022-09-11 17:50:39 +08:00
Man, Jianting (Meco) ffe1c57240 Revert "[tools/link-orger]Sort objects before generate building target to get same link-order/map files/BIN files from the same source files."
This reverts commit 0cb6211372.
2022-09-09 20:27:22 -04:00
lanyang 0cb6211372 [tools/link-orger]Sort objects before generate building target to get same link-order/map files/BIN files from the same source files. 2022-09-09 10:45:23 -04:00
Meco Man ce16945cba [kernel][version] 采用新的版本宏定义
版本控制规范:https://semver.org/

目前的版本子号不是很规范,其中RT_VERSION甚至和VS那边造成了冲突
```c
/* RT-Thread version information */
#define RT_VERSION                      4L              /**< major version number */
#define RT_SUBVERSION                   1L              /**< minor version number */
#define RT_REVISION                     1L              /**< revise version number */
```

参考ESP32:
```c
/** Major version number (X.x.x) */
#define ESP_ARDUINO_VERSION_MAJOR   2
/** Minor version number (x.X.x) */
#define ESP_ARDUINO_VERSION_MINOR   0
/** Patch version number (x.x.X) */
#define ESP_ARDUINO_VERSION_PATCH   3
```

建议改成:
```c
/* Major version number (X.x.x) */
#define RT_VERSION_MAJOR   4
/* Minor version number (x.X.x) */
#define RT_VERSION_MINOR   2
/* Patch version number (x.x.X) */
#define RT_VERSION_PATCH   0
```
2022-09-07 10:11:45 -04:00
Man, Jianting (Meco) 5f474ed26c
[scons] 使用target=mdk5 和 iar时,打印IDE版本号 (#6315)
* [scons] 使用target=mdk5 和 iar时,打印IDE版本号

* 移除对keil iar生成功能的检查
1.这些工程是否可以生成是BSP可选项,不是每个BSP都支持
2.CI环境中并没有安转IAR和Keil环境,导致直接获取IDE版本失败

* MDKProject函数重命名为MDK2Project
2022-08-24 22:39:21 -04:00
Meco Man dd94198bd6 [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM 2022-08-16 09:39:00 +08:00
aozima f50fbb03e2 [tools] remove .sconsign.dblite when scons clean.
fixed py2 <==> py3 ValueError : unsupported pickle protocol: x
2022-08-10 11:39:52 -04:00
Meco Man eafcdd0bc2 [tools] format python code 2022-08-02 23:15:14 -04:00
wugensheng ccbecfc220
[fix][building.py]修复动态模块的option的bug (#6081)
* [fix][building.py]修复动态模块option的bug
2022-06-15 16:58:16 +08:00
Meco Man c9878aacd2 [scons][iar] 将IAR的PLATFORM字段由iar调整为iccarm
将路径更新为IAR最新版本的路径
2022-06-09 07:01:59 +08:00
liukangcc b077e91cdf [update] support command: scons --target=xmake 2022-05-09 09:39:22 +08:00
shinu 778be73cac Fix bugs for processing command line parameters 2022-04-23 00:43:26 +08:00
wugensheng 0624bbf009
Decouple the addition of command line arguments (#5848)
* Decouple the addition of command line arguments

* Decouple the addition of command line arguments

* Modify change logs

* Modify change logs

* Decouple the addition of command line arguments

* delete wrong edits

* Modify file header

* remove duplicate imports
2022-04-22 08:23:35 +08:00
Man, Jianting (Meco) a0f8d43744
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM (#5802)
* [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
2022-04-20 09:56:04 +08:00
LiuKang e1ef28a79b
[update] Sort the source file path (#5783) 2022-04-08 12:55:05 +08:00
liukangcc 27511885f3 [update] change ccflags to cflags 2022-01-20 11:50:30 +08:00
Man, Jianting (Meco) ed1f8b3f64 Revert "add clang-arm support."
This reverts commit a5f6fdc780.
2021-12-22 18:57:16 -05:00
guozhanxin a5f6fdc780 add clang-arm support. 2021-12-22 13:03:05 +08:00
Meco Man a78f957ad4 [tools][building.py] 修复加入空列表和空字符串的问题 2021-11-30 10:18:51 -05:00
guozhanxin 194e33a792 [tools] add scons --target=cmake-armclang 2021-07-01 01:30:50 +08:00
chenyaxing 1ac2347e1d dev:[tools] add default project name and project path while --dist-ide 2021-05-25 21:17:35 +08:00
guozhanxin f0ca8be39d 【修复】studio 生成工程报错的问题。 2021-05-17 15:14:59 +08:00
guozhanxin 3906f3b948 [add] auto test ci. 2021-05-10 20:34:35 +08:00
Bernard Xiong 9235b62cbe
Merge pull request #4479 from mysterywolf/cmake
[tools] 增加cmake生成工具
2021-04-10 23:32:51 +08:00
tangyuxin 510955ba42 [tools] Python 3 compatibility support 2021-04-05 12:11:14 +08:00
Meco Man 920b24ab46 update 2021-03-18 00:19:45 +08:00
Meco Man b173ebde98 [tools] 增加cmake生成工具 2021-03-18 00:12:48 +08:00
yaxing.chen 762427bedc bugfix:remove duplicate files in src list before DefineGroup 2021-03-05 17:13:18 +08:00
Meco Man 8f7bbfa011 remove RT_USING_NOLIBC 2021-02-23 11:27:12 +08:00
mx 36834efc24 scons: Add CodeLite target 2020-10-16 15:20:36 +08:00
来日方长 07519cf020 update tools/building.py.
添加stackanalysis选项
2020-06-21 22:11:13 +08:00
xieyangrun d46f914da4 [tools] fixed python 2.x `cmp` 2020-06-11 09:17:16 +08:00
xieyangrun ba32394a00 Optimize project group sort by name 2020-06-08 18:07:04 +08:00
armink 470372c5be [tools] update eclipse target for refreshScope support. 2019-11-28 18:34:22 +08:00
Bernard Xiong cb40e60273
Merge pull request #3072 from liruncong/EnvPath
[tools]修正外部环境变量未引入Env Path,导致自定义Builder的action参数使用python函数时,无法找到外部程序的问题
2019-09-16 08:49:30 +08:00
liruncong ca67b4d18e [tools]armclang库文件编译支持 2019-09-14 22:36:19 +08:00
liruncong 4bb76f3410 [tools]修正外部环境变量未引入Env Path,导致自定义Builder的action参数使用python函数时,无法找到外部程序的问题 2019-09-14 22:21:51 +08:00
armink 1b3358a966 [tools] Replace the old pyconfig to guiconfig. 2019-07-24 18:30:44 +08:00
armink 244c1a810d [tools] add menuconfig GUI by python. 2019-07-13 14:45:05 +08:00
armink d0d15c75a2 [tools] Add project config reset feature to eclipse target. 2019-06-18 20:11:12 +08:00
SummerGift 1a32d47a79 【完善】新增命令说明信息 2019-06-18 14:42:30 +08:00
SummerGift 4ca30835c1 【完善】添加 eclipse 生成工程相关处理,并完善参数检查 2019-06-18 14:28:00 +08:00
SummerGift 8329c29f84 [修改] 将命令格式修改为 scons --dist-ide --target-path=your__prj_path --target-name=your_prj_name 2019-06-18 10:31:29 +08:00
SummerGift 5c78ab740f [add] scons --dist-ide function 2019-06-17 20:49:19 +08:00