summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2015-10-14[Tools] Fix the buildlib with LOCAL_* options groupv2.0.2stable-v2.0.xBernard Xiong
2015-10-09Merge patch from master to prepare release v2.0.2Bernard Xiong
2015-09-17[Tools] merge v2.1.0 LOCAL_CPPPATH feature to v2.0.x branchBernard Xiong
2015-01-23[Tools] Add copyright information for scons script filesBernard Xiong
2015-01-19add AStyle shell script fileBernard Xiong
2015-01-04If there is no CPPDEFINES, generate an empty GetCPPDEFINES function.bernard
2014-12-24clang-analyze: force 32bit compileGrissiom
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-08-27tools/keil: preserve the order of CPPPATHGrissiom
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-05Update keil.pyaozima
clear old groups in template.uvproj.
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-25[scons] fix the BSP_ROOT issue in ua.py.bernard
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] Change attribution for wizard.py (ci build)Bernard Xiong
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-07travis: add scan-build in PATHGrissiom
2013-09-07Scons: add a custom tool to do clang static analyzeGrissiom
Bsps can use the clang analyzer as a tool: env = Environment(toolpath=[os.path.join(RTT_ROOT, 'tools', 'tools')], tools = ['clang-analyze']) When building the project, the static analyzer will be called to check all the C code. The warnings are print to stderr.
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-22update iar.py: fixed bug when path is absolute.aozima
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-06-16add a default codeblocks template.aozima
2013-06-16fixed bug: scons: don't throw excptions when CPPDEFINES is not defined.aozima
2013-06-03Keep flash setting when generate Keil MDK project.Bernard Xiong
2013-05-17add library file for Keil MDK project generationBernard Xiong
2013-04-25remove project.uvopt file when generate keil mdk project fileBernard Xiong
2013-03-31add more command string for sconsRogerz Zhang
2013-03-01tools script: fix up mdk460 link errorprife
2013-02-24building.py: append messed up objs list, use extend to avoid thatGrissiom
The return type of SConscript is a subclass of UserList. We should use extend to keep the depth of the list is always 1 when concatenate SConscript return values. Thanks prife for making me realize that this is really a problem. Reported-and-Tested-by: prife
2013-02-21update scons: support C::Baozima
2013-02-02Add detail build resultRogerz Zhang
2013-01-29Rename `--default-comstr` to `--verbose`Rogerz Zhang
2013-01-19Use customized command string in sconsRogerz Zhang
2013-01-08convert end of lineBernard Xiong
2013-01-04Add support for auto ciRogerz Zhang