rt-thread/bsp/lm3s8962/Libraries/SConscript

27 lines
695 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()
2017-12-31 21:19:52 +08:00
src = Glob('driverlib/*.c')
2013-01-08 22:40:58 +08:00
# cortex-m3 no FPU.
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
SrcRemove(src, 'fpu.c')
# add for startup script
if rtconfig.CROSS_TOOL == 'gcc':
src += ['startup/gcc/start_gcc.S']
elif rtconfig.CROSS_TOOL == 'keil':
src += ['startup/arm/start_rvds.S']
elif rtconfig.CROSS_TOOL == 'iar':
src += ['startup/iar/start_iar.S']
2017-12-31 21:19:52 +08:00
CPPPATH = [cwd]
2013-01-08 22:40:58 +08:00
CPPDEFINES = [rtconfig.PART_TYPE]
2017-12-31 21:19:52 +08:00
2013-01-08 22:40:58 +08:00
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')