diff options
| author | ArdaFu <[email protected]> | 2018-05-16 09:39:56 +0800 |
|---|---|---|
| committer | ArdaFu <[email protected]> | 2018-05-16 09:39:56 +0800 |
| commit | f5e1949efda7231fb5c164154f71bd7aadef3236 (patch) | |
| tree | 6166ae07b7ae55b90505ccf25e5f8d18ef65a40f | |
| parent | 16474d4436e969458368649e002df585066e8bc7 (diff) | |
[BSP] TM4C129X: Move the IAR compile argument to IAR condition branch.
| -rw-r--r-- | bsp/tm4c129x/libraries/SConscript | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bsp/tm4c129x/libraries/SConscript b/bsp/tm4c129x/libraries/SConscript index 90f37cfc86..56c7b84ab3 100644 --- a/bsp/tm4c129x/libraries/SConscript +++ b/bsp/tm4c129x/libraries/SConscript @@ -6,17 +6,19 @@ from building import * cwd = GetCurrentDir() src = Glob('driverlib/*.c') SrcRemove(src, 'onewire.c') +CCFLAGS = '' # add for startup script if rtconfig.CROSS_TOOL == 'gcc': - src += ['startup/startup_gcc.c'] + src += ['startup/startup_gcc.c'] elif rtconfig.CROSS_TOOL == 'keil': - src += ['startup/startup_rvmdk.S'] + src += ['startup/startup_rvmdk.S'] elif rtconfig.CROSS_TOOL == 'iar': - src += ['startup/startup_ewarm.c'] + src += ['startup/startup_ewarm.c'] + CCFLAGS += ' --diag_suppress=pe177' CPPPATH = [cwd, cwd + '/inc', cwd + '/driverlib'] -CCFLAGS = ' --diag_suppress=pe177' + CPPDEFINES = [rtconfig.PART_TYPE] group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, CCFLAGS = CCFLAGS) |
