summaryrefslogtreecommitdiff
path: root/tools/building.py
AgeCommit message (Collapse)Author
2018-03-01[Kernel] include finsh.h file in rtthread.h when RT_USING_FINSH enableBernard Xiong
2018-01-16[Tools] Add _REENT_SMALL definition when enable nano-newlibBernard Xiong
2017-12-29[Tools] Add useconfig option for scons.bernard
2017-12-02[Tools] Add g++ link patch when enble C++.bernard
2017-11-30[Tools] Add menuconfig scriptBernard Xiong
2017-11-25[Tools] Fix the abspath issue of Rtt_Root in building.py.bernard
2017-11-13[tools/building.py][Fix] Add `do_copy_file` function form `mkdist`MurphyZhao
2017-11-06[Tools] Remove menuconfig command in sconsBernard Xiong
2017-11-04[Tools] Add scons --dist command.bernard
2017-11-02[Tools] Add genconfig command in scons.bernard
2017-10-24update SrcRemove(): auto detect string or file object.aozima
2017-01-31[tools] add --menuconfig option for sconsBernard Xiong
2016-10-28[tools] Add LocalOption routines.Bernard Xiong
2016-03-08SCons PreProcessor patch: Stop processing "#define" in false conditiononelife
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.
2015-10-14[Tools] Fix the buildlib with LOCAL_* options groupBernard Xiong
2015-10-11[Tools] Add win32 spawn patch for module building.Bernard Xiong
2015-08-09[BSP] stm32f7-disco cleanupBernard Xiong
2015-08-09[Tools] merge local modificationBernard Xiong
2015-08-04[tools] fix the list in list issue when use LOCAL_* optionsBernard Xiong
2015-07-27[Tools] Add LOCAL_* options for group definitionBernard Xiong
2015-07-25[Tools] Add LOCAL_* options for group definitionBernard Xiong
2015-05-04[tools] Fix ua target issue.Bernard Xiong
2015-04-10[tools] Add package.json as building scriptBernard Xiong
2015-03-18building: PrepareBuilding forgot to declare BuildOptions as globalGrissiom
The global variables in the building.py are totally a pile of shit.
2015-03-14[Tools] Add bsp_directory.Bernard Xiong
Add bsp_directory for PrepareModuleBuilding function and module building environment can parse rtconfig.h too.
2015-01-23[Tools] Add copyright information for scons script filesBernard Xiong
2014-11-19Add mdk5 support in SCons toolsBright Pan
2014-11-19Delete trailing whitespaceBright Pan
2014-11-18SCons: allow set object files in DefineGroupGrissiom
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-10-08tools: fix SrcRemove on empty srcGrissiom
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-08tools: preserve the order of CPPPATH/CPPDEFINES/LIBPATH/LIBSGrissiom
The order of them are important while the uniqueness has nothing to do with the compiling.
2014-09-06Remove unsupport syntex for python 2.6.Xiongfei Guo
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 <[email protected]>
2014-09-01tools/building: remove the use of startupinfoGrissiom
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-06-09tools/building.py: more descriptive on errorGrissiom
Print the command that failed to execute and try to tell the reason to fall.
2014-05-24Scons: fix the Win32SpawnGrissiom
Windows(tm) CreateProcess does not use the env passed to it to find the executables. So we have to modify our own PATH to make Popen work. Also, detect the cmd build-in commands and execute it directly. Tested on MDK toolchain on RB4088 and the MSVS toolchain on simulator BSP.
2014-04-10scons: no need to set RTT_ROOT as RepositoryGrissiom
In SCons manual: ================= In order to inform the C compiler about the repositories, SCons will add appropriate -I flags to the compilation commands for each directory in the $CPPPATH list. So if we add the current directory to the construction environment $CPPPATH like so: env = Environment(CPPPATH = ['.']) env.Program('hello.c') Repository('/usr/repository1') Then re-executing SCons yields: % scons -Q cc -o hello.o -c -I. -I/usr/repository1 hello.c cc -o hello hello.o ================= The additional include directory is definitely not what we want. Just remove the additional Repository line.
2014-04-10scons: seperate the BSP build with the kernel buildGrissiom
BSPs could have their own components/ etc. If they point to the same folder, SCons would find the wrong source code to compile.
2014-03-24Add UA building script.bernard
2014-02-25[JS] fix the include path issueBernard Xiong
2014-02-23[scons] Add the library to the group when used buildlib buildingbernard
2014-02-16[scons] Use a single path for group (ci build)Bernard Xiong
2014-02-15[scons] fix library suffix issue.bernard
2014-02-07Add more feature on buildlibbernard
2013-10-01scons script: support to generate vs2012 project xmlprife
rename template.vcproj to template_vs2005.vcproj add template_vs2012.vcxproj NOTE: the vs2012.py is ugly, just can work.
2013-09-07Scons: run `clang -Wall -fsyntax-only` in clang-analyzeGrissiom
The `clang -fsyntax-only` will give us additional warning messages in the console.
2013-08-09add buildlib for Keil MDKbernard
2013-07-09building.py: add clang static analyzer supportGrissiom
It adds the '--clang-analyzer' option that could invoke clang as the static code checker. It is recommanded to work with 'scan-build' shipped with Clang. For example, `scan-build scons --clang-analyzer`.
2013-06-19tools: add an option to generate cscope databaseGrissiom
When --cscope option is given to Scons, it will generate a cscope cross-reference database in current directory, which is useful in Vim(and other cscope-aware text editors). For example, `scons -s --cscope` will do nothing except generating the database. You can use this option with other options together. It is inspired by the `make cscope` of Linux.
2013-03-31add more command string for sconsRogerz Zhang
2013-03-01tools script: fix up mdk460 link errorprife