rt-thread/bsp/lm4f232/Libraries/SConscript

30 lines
755 B
Python
Raw Normal View History

2013-01-08 22:40:58 +08:00
Import('RTT_ROOT')
Import('rtconfig')
from building import *
# The set of source files associated with this SConscript file.
cwd = GetCurrentDir()
src = Glob('driverlib/*.c')
# cortex-m3 no FPU.
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
SrcRemove(src, 'fpu.c')
# add for startup script
if rtconfig.PLATFORM == 'gcc':
2013-01-08 22:40:58 +08:00
src += ['startup/gcc/start_gcc.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
2013-01-08 22:40:58 +08:00
src += ['startup/arm/start_rvds.S']
elif rtconfig.CROSS_TOOL == 'iar':
src += ['startup/iar/start_iar.S']
CPPPATH = [cwd]
CPPDEFINES = [rtconfig.PART_TYPE]
if rtconfig.PLATFORM == 'gcc':
2013-01-08 22:40:58 +08:00
CPPDEFINES += ['gcc'];
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')