2011-11-29 16:06:46 +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')
|
|
|
|
|
2011-12-23 11:20:26 +08:00
|
|
|
# cortex-m3 no FPU.
|
|
|
|
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
|
|
|
SrcRemove(src, 'fpu.c')
|
|
|
|
|
2011-11-29 16:06:46 +08:00
|
|
|
# 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']
|
|
|
|
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
2011-12-23 11:20:26 +08:00
|
|
|
CPPDEFINES = [rtconfig.PART_TYPE]
|
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
2011-11-29 16:06:46 +08:00
|
|
|
|
|
|
|
Return('group')
|