[BSP] TM4C129X: Move the IAR compile argument to IAR condition branch.
This commit is contained in:
parent
16474d4436
commit
f5e1949efd
|
@ -6,17 +6,19 @@ from building import *
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('driverlib/*.c')
|
src = Glob('driverlib/*.c')
|
||||||
SrcRemove(src, 'onewire.c')
|
SrcRemove(src, 'onewire.c')
|
||||||
|
CCFLAGS = ''
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.CROSS_TOOL == 'gcc':
|
if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
src += ['startup/startup_gcc.c']
|
src += ['startup/startup_gcc.c']
|
||||||
elif rtconfig.CROSS_TOOL == 'keil':
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||||||
src += ['startup/startup_rvmdk.S']
|
src += ['startup/startup_rvmdk.S']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
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']
|
CPPPATH = [cwd, cwd + '/inc', cwd + '/driverlib']
|
||||||
CCFLAGS = ' --diag_suppress=pe177'
|
|
||||||
|
|
||||||
CPPDEFINES = [rtconfig.PART_TYPE]
|
CPPDEFINES = [rtconfig.PART_TYPE]
|
||||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, CCFLAGS = CCFLAGS)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES, CCFLAGS = CCFLAGS)
|
||||||
|
|
Loading…
Reference in New Issue