diff options
| author | ArdaFu <[email protected]> | 2018-06-04 14:18:31 +0800 |
|---|---|---|
| committer | ArdaFu <[email protected]> | 2018-06-04 14:18:31 +0800 |
| commit | 099062de782913dc911e2fadf889291aafbeeeb8 (patch) | |
| tree | 2945d05e9a1e83ea745d2b1c189da21d1305624e /libcpu | |
| parent | 7a1f8ee1c48b1db88e2a349caf54c828d5513b65 (diff) | |
[tools][building] Add ASFLAGS in DefineGroup.
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/SConscript | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcpu/SConscript b/libcpu/SConscript index 0d00976092..a3404e0101 100644 --- a/libcpu/SConscript +++ b/libcpu/SConscript @@ -4,6 +4,7 @@ from building import * comm = rtconfig.ARCH + '/common' path = rtconfig.ARCH + '/' + rtconfig.CPU +AFLAGS = '' # The set of source files associated with this SConscript file. if rtconfig.PLATFORM == 'armcc': @@ -21,7 +22,10 @@ if rtconfig.PLATFORM == 'cl': if rtconfig.PLATFORM == 'mingw': src = Glob(path + '/*.c') +if rtconfig.PLATFORM == 'armcc' and rtconfig.ARCH == 'arm' and rtconfig.CPU == 'arm926': + ASFLAGS = ' --cpreproc' + CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU, RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/common'] -group = DefineGroup(rtconfig.CPU.upper(), src, depend = [''], CPPPATH = CPPPATH) +group = DefineGroup(rtconfig.CPU.upper(), src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS) Return('group') |
