@@ -2,30 +2,37 @@ Import('RTT_ROOT')
22Import ('rtconfig' )
33from building import *
44
5+ arch = rtconfig .ARCH
56comm = rtconfig .ARCH + '/common'
67path = rtconfig .ARCH + '/' + rtconfig .CPU
8+ src = []
79ASFLAGS = ''
810
911# The set of source files associated with this SConscript file.
1012if rtconfig .PLATFORM == 'armcc' :
11- src = Glob (path + '/*.c' ) + Glob (path + '/*_rvds.S' ) + Glob (comm + '/*.c' )
13+ src += Glob (path + '/*.c' ) + Glob (path + '/*_rvds.S' )
14+ src += Glob (comm + '/*.c' ) + Glob (comm + '/*_rvds.S' )
1215
1316if rtconfig .PLATFORM == 'gcc' :
14- src = Glob (path + '/*.c' ) + Glob (path + '/*_gcc.S' ) + Glob (comm + '/*.c' ) + Glob (path + '/*_init.S' )
17+ src += Glob (path + '/*_init.S' )
18+ src += Glob (path + '/*.c' ) + Glob (path + '/*_gcc.S' )
19+ src += Glob (comm + '/*.c' ) + Glob (comm + '/*_gcc.S' )
1520
1621if rtconfig .PLATFORM == 'iar' :
17- src = Glob (path + '/*.c' ) + Glob (path + '/*_iar.S' ) + Glob (comm + '/*.c' )
22+ src += Glob (path + '/*.c' ) + Glob (path + '/*_iar.S' )
23+ src += Glob (comm + '/*.c' ) + Glob (comm + '/*_iar.S' )
1824
1925if rtconfig .PLATFORM == 'cl' :
20- src = Glob (path + '/*.c' )
26+ src = Glob (path + '/*.c' )
2127
2228if rtconfig .PLATFORM == 'mingw' :
23- src = Glob (path + '/*.c' )
29+ src = Glob (path + '/*.c' )
2430
2531if rtconfig .PLATFORM == 'armcc' and rtconfig .ARCH == 'arm' and rtconfig .CPU == 'arm926' :
2632 ASFLAGS = ' --cpreproc'
27-
28- CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig .ARCH + '/' + rtconfig .CPU , RTT_ROOT + '/libcpu/' + rtconfig .ARCH + '/common' ]
33+
34+ CPPPATH = [RTT_ROOT + '/libcpu/' + arch + '/' + rtconfig .CPU , RTT_ROOT + '/libcpu/' + arch + '/common' ]
35+
2936group = DefineGroup (rtconfig .CPU .upper (), src , depend = ['' ], CPPPATH = CPPPATH , ASFLAGS = ASFLAGS )
3037
3138Return ('group' )
0 commit comments