Commit Graph

260 Commits

Author SHA1 Message Date
xieyangrun 495927696e fixed IAR project add LIBS 2018-08-13 16:54:02 +08:00
liang yongxiang b2efa8eeff [tools] update 'scons --dist-strip': copy all sal_socket and add more info to libcpu 2018-08-03 19:47:24 +08:00
liang yongxiang 981afddee3 [tools] fixed typo in MkDist_Strip 2018-08-03 16:29:13 +08:00
liang yongxiang 09a844f729 [tools] The output directory of "scons --dist-strip" is changed from current-bsp/dist to current-bsp/dist-strip 2018-08-03 16:18:27 +08:00
liang yongxiang 12eafd541d [tools] Reduce copied files 2018-08-03 12:05:23 +08:00
liang yongxiang 1f389c684b [tools] add scons --dist-strip support 2018-08-03 11:09:01 +08:00
aozima 7266928897 [Tools] add armcc(MDK) get version support 2018-07-25 21:42:28 +08:00
liang yongxiang 67b3117859 [tools] rewrite "scons --dist" and remove "scons --copy/copy-header" 2018-07-24 10:19:19 +08:00
aozima 0fbd8bf167 [scons] remove check whether exist group library. 2018-07-16 22:45:29 +08:00
armink dc7522b7ca [tools] Fix SCons build error when `RTT_EXEC_PATH` not found. 2018-06-27 08:27:45 +08:00
armink dbe8e60fcc [tools] Change the generate cconfig.h code position for fix the 'scons --target=cc' problem. 2018-06-23 12:04:17 +08:00
armink b7f7d6e6b2 [tools] Fix the IDE project build error when using 'scons --target=cc'. 2018-06-22 15:05:33 +08:00
armink 9539892a1c [tools] Fix IAR get version failed on RT-Thread Env tools. 2018-06-22 13:46:12 +08:00
Bernard Xiong c397c91c1d
Merge pull request #1538 from geniusgogo/fixSrcRemove
fixed SrcRemove
2018-06-14 13:30:52 +08:00
xieyangrun 82a50f29e9 [tools/building.py]fixed SrcRemove 2018-06-14 11:55:15 +08:00
xieyangrun 8101fe1586 [tools/vsc.py]update json dump support indent=4 2018-06-14 09:41:09 +08:00
xieyangrun 8430b83235 Merge branch 'master' of https://github.com/RT-Thread/rt-thread into fixSrcRemove 2018-06-14 09:31:46 +08:00
xieyangrun 86ae6146fd [tools/building.py]fixed SrcRemove /\ convert issue. 2018-06-14 09:30:35 +08:00
geniusgogo a838c543a5
update vsc.py
fixed vscode includepath add error
2018-06-13 18:19:31 +08:00
liang yongxiang 4e937887f6 [tools] add target=cdk in building script 2018-06-11 09:44:10 +08:00
armink 67dd8c4a0d [tools][scons] Fix error notice when 'EXEC_PATH' is not exist. 2018-06-07 17:35:31 +08:00
armink 1c37c813b5 [tools][scons] Add error notice when 'EXEC_PATH' is not exist. 2018-06-07 15:44:26 +08:00
ArdaFu 099062de78 [tools][building] Add ASFLAGS in DefineGroup. 2018-06-04 14:18:31 +08:00
Bernard Xiong 9f0998abb8 [Tools] Remove `scons --test` argument. 2018-05-31 09:58:35 +08:00
Bernard Xiong 427be5c6ca [Tools] Add copyright information. 2018-05-30 20:58:04 +08:00
Bernard Xiong fd0ae67289 [Tools] Add target=vsc in building script. 2018-05-30 18:01:24 +08:00
heyuanjie 10d26fd3f8 优化cbp脚本 2018-05-24 16:44:31 +08:00
heyuanjie 4ec3552c0f 修正无法生成cbp的问题 2018-05-24 09:54:03 +08:00
Bernard Xiong 94116edafa [Tools] Disable print out in gcc detection. 2018-05-22 11:32:48 +08:00
zyh a37ffb1b28 [Tools]fix GCC7 in MacOSX 2018-05-17 16:45:16 +08:00
Bernard Xiong 6ac213d622 Add GCC version detection.
Add cconfig.h file for different version of GCC, which is automatically
detected and generated by scons script.
2018-05-14 21:37:11 +08:00
Bernard Xiong 74d045093b [tools] Fix the sys.path issue in IARVersion. 2018-04-15 14:39:35 +08:00
aozima 0d1f75453b update scons script: strict SrcRemove() match rule. 2018-04-07 17:50:14 +08:00
liang yongxiang 2545c3854e [Tools] add IAR get version support 2018-04-07 00:47:27 +08:00
Bernard Xiong 15fa3084c3 [Kernel] include finsh.h file in rtthread.h when RT_USING_FINSH enable 2018-03-01 18:12:49 +08:00
Bernard Xiong c472533f02 [Tools] Add _REENT_SMALL definition when enable nano-newlib 2018-01-16 20:21:40 +08:00
Neil Yang 639705c705 一个小问题
应该使用utils对象
2018-01-03 18:52:45 +08:00
Bernard Xiong 68a5e7d5a3 [BSP] Update building script 2017-12-31 21:40:20 +08:00
bernard bc6703d0be [Tools] Add useconfig option for scons. 2017-12-29 22:26:39 +08:00
Bernard Xiong 6fe49b1af7
[Tools] Fix the env.sh in menuconfig 2017-12-26 15:55:30 +08:00
Bernard Xiong ecbe7b4ca1 [Tools] Add more packages support under Linux 2017-12-20 11:20:55 +08:00
bernard 3802754f05 [Tools] Fix the walk_children issue 2017-12-13 20:13:45 +08:00
bernard c0b2a1a4b4 [Tools] Add g++ link patch when enble C++. 2017-12-02 10:53:19 +08:00
Bernard Xiong 9a82952707 [Tools] fix kconfig-frontends compiling issue under mac 2017-11-30 20:57:06 +08:00
Bernard Xiong 7bc87e4ae8 [Kconfig] Rename all of KConfig files to 'Kconfig' 2017-11-30 20:12:53 +08:00
Bernard Xiong 89afad784c [Tools] Add menuconfig script 2017-11-30 19:56:05 +08:00
Bernard Xiong 79bffa4eb1 [Tools] Add kconfig-frontends 2017-11-27 23:36:07 +08:00
bernard adfb73cd8c [Tools] Fix the abspath issue of Rtt_Root in building.py. 2017-11-25 07:37:07 +08:00
MurphyZhao 7b2628393b [tools/building.py][Fix] Add `do_copy_file` function form `mkdist` 2017-11-13 14:15:16 +08:00
tanek liang 9d01021f30 [Tools] scons add iar LIBS and LIBPATH support 2017-11-10 19:49:34 +08:00
Bernard Xiong 5293dddd00 [Tools] Remove menuconfig command in scons 2017-11-06 14:01:48 +08:00
bernard 6f6dd80103 [Tools] Add scons --dist command. 2017-11-04 17:39:45 +08:00
bernard a9a02d5e1f [Tools] Add more template detect in buildbot. 2017-11-03 21:09:50 +08:00
ArdaFu 7c9075dfb2 [tools]menuconfig.py. Fix config line split error when config line contains more then one equal marks. 2017-11-03 15:01:41 +08:00
bernard f08d1f5034 [Tools] Add genconfig command in scons. 2017-11-02 16:57:17 +08:00
aozima a1902f2de0 update SrcRemove(): auto detect string or file object. 2017-10-24 09:49:48 +08:00
bernard 5c6a6e5db8 [Tools] Add $ var support in IAR project file. 2017-10-10 16:52:15 +08:00
Bernard Xiong a7c4a23c67 [tools] add --menuconfig option for scons 2017-01-31 13:22:56 +00:00
Bernard Xiong 033d254c4d [tools] rename KConfig menu name 2017-01-31 13:22:25 +00:00
bernard d692001fd5 [tools] Add KConfig files. 2017-01-31 11:54:12 +08:00
Bernard Xiong de3cf4195a [Tools] Add group libs support in vs project. 2017-01-19 23:10:46 +08:00
Bernard Xiong 475a3b8b85 [Tools] fix CPPDEFINES issue in vs 2017-01-08 10:01:48 +08:00
Bernard Xiong 4730a45ab3 [tools] Add LocalOption routines. 2016-10-28 22:12:24 +08:00
Bernard Xiong 9c48f9e09c [Tools] Fix the CPP file type in Keil. 2016-04-09 23:10:28 +08:00
onelife aee3a1d4c5 SCons PreProcessor patch: Stop processing "#define" in false condition
Example "rtconfig.h" content:
 ...
 //#define BOARD_USING_LED
 #if defined(BOARD_USING_LED)
 #define RT_USING_RTGUI
 #endif
 ...

- Before patching, RTGUI module will be built although not intend to do so.
- After patching, RTGUI module will not be built.
2016-03-08 01:42:01 +08:00
Bernard Xiong 1086f6cfa0 [Tools] Fix the buildlib with LOCAL_* options group 2015-10-14 11:07:42 +08:00
Bernard Xiong 3fb53adc4f [Tools] Update Keil MDK project generation.
Add C++ files support;
Fix the two same group issue if to add a library into an exist group.
2015-10-11 15:37:12 +08:00
Bernard Xiong 2e2886168e [Tools] Add win32 spawn patch for module building. 2015-10-11 15:34:32 +08:00
Bernard Xiong fc54a74abb [BSP] stm32f7-disco cleanup 2015-08-09 09:17:28 +08:00
Bernard Xiong 1a5c579e71 [Tools] merge local modification 2015-08-09 00:03:40 +08:00
Bernard Xiong 804e23a3aa [tools] fix the list in list issue when use LOCAL_* options 2015-08-04 09:43:27 +08:00
Bernard Xiong 0af2be6b5d [Tools] Add LOCAL_* options for group definition 2015-07-27 10:34:53 +08:00
Bernard Xiong f5217d6a9c [Tools] Add LOCAL_* options for group definition 2015-07-25 23:50:17 +08:00
aozima 76d82d6803 update scons MDK5 project script: clean old groups. 2015-06-25 20:49:54 +08:00
aozima 6230ff81cc fixed scons building error when use LIB. 2015-05-22 16:49:07 +08:00
BernardXiong 2313424f81 [tools] Add better way to generate MDK project file. 2015-05-11 21:12:53 +08:00
Bernard Xiong 448f9c9a7a [tools] Fix ua target issue. 2015-05-04 22:04:01 +08:00
Bernard Xiong 1e38f39bea [tools] Using object name to decide whether use alias name in Keil MDK. 2015-04-24 11:48:38 +08:00
Bernard Xiong b6951f64b8 [tools] Using object name to decide whether use alias name in Keil MDK. 2015-04-24 11:48:26 +08:00
Bernard Xiong 1f95de43aa [tools] Add package.json as building script 2015-04-10 06:35:59 +00:00
Bernard Xiong 4b838caaf8 Merge remote-tracking branch 'upstream/master' 2015-04-10 06:34:02 +00:00
www220@tom.com 7e260dbcce 修正rtt-root位于其他目录时计算目录错误的bug 2015-04-08 00:52:42 +08:00
www220@tom.com 2eaaa2cb05 在vs2010中将编译文件分组 2015-04-07 18:27:51 +08:00
Bernard Xiong 6c83ff6eca Merge remote-tracking branch 'coding/master' 2015-03-31 07:03:22 +00:00
Bernard.Xiong cf37bccae4 Add copyright information 2015-03-22 08:56:37 +08:00
Grissiom 43e020d481 building: PrepareBuilding forgot to declare BuildOptions as global
The global variables in the building.py are totally a pile of shit.
2015-03-18 15:50:10 +08:00
Bernard Xiong 1d23ce6cbd [Tools] Add bsp_directory.
Add bsp_directory for PrepareModuleBuilding function and module building environment can parse rtconfig.h too.
2015-03-14 09:46:37 +08:00
Bernard Xiong 950c3a4298 [Tools] Add copyright information for scons script files 2015-01-23 14:34:09 +08:00
Bernard Xiong 765ac35e13 add AStyle shell script file 2015-01-19 08:54:18 +00:00
bernard 09602fd9d8 If there is no CPPDEFINES, generate an empty GetCPPDEFINES function. 2015-01-04 12:26:01 +08:00
Grissiom ee59452ee5 clang-analyze: force 32bit compile 2014-12-24 12:10:00 +08:00
Bright Pan 777d3c059b Add mdk5 support in SCons tools 2014-11-19 14:57:10 +08:00
Bright Pan 06f8426f59 Delete trailing whitespace 2014-11-19 14:52:36 +08:00
Grissiom 767720c1f7 SCons: allow set object files in DefineGroup
The source files can be the raw file names end with .c or .o. So return
the raw file names is more flexible than wrap them with Object.
2014-11-18 17:08:21 +08:00
Grissiom d33df46f19 tools: fix SrcRemove on empty src
If the src is empty list, it will crash at:

    IndexError: list index out of range:
      File "/home/xxx/src/SConstruct", line 39:
        objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=True)
      ...
      File "/home/xxx/src/drivers/SConscript", line 12:
        SrcRemove(src, src_need_remove)
      File "/home/rt-thread-stable/tools/building.py", line 496:
        if type(src[0]) == type('str'):
2014-10-08 18:03:12 +08:00
Grissiom 2c5eea4c21 tools: preserve the order of CPPPATH/CPPDEFINES/LIBPATH/LIBS
The order of them are important while the uniqueness has nothing to do
with the compiling.
2014-10-08 12:22:30 +08:00
Xiongfei Guo a1beec4ad3 Remove unsupport syntex for python 2.6.
Dict Comprehensions is imported in Python 2.7 & 3.0 which is PEP 274 [1]. Some
OS like CentOS 6 which is use Python 2.6 cannot support this syntex.

[1] http://legacy.python.org/dev/peps/pep-0274/

Signed-off-by: Xiongfei Guo <xfguo@credosemi.com>
2014-09-06 14:33:46 +08:00
Grissiom 51c4a3aeae tools/building: remove the use of startupinfo
The startupinfo does not have any visible effects on the building
process and some old Python version does not have it at all. So remove
it for the seek of simple.

Tested `scons -j4` in a dual core virtual machine.
2014-09-01 10:11:10 +08:00
Grissiom 83f8b52064 tools/keil: preserve the order of CPPPATH
The order of CPPPATH is important: some project would use the order of
CPPPATH to override the default configuration headers. This commit also
refine the this piece of code in a more Pythonic way.
2014-08-27 11:39:34 +08:00
aozima 0cf9018e49 Update keil.py
clear old groups in template.uvproj.
2014-08-05 11:51:32 +08:00