You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
715 B
26 lines
715 B
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 in ['gcc']:
|
|
src += ['startup/gcc/start_gcc.S']
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
|
src += ['startup/arm/start_rvds.S']
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
|
src += ['startup/iar/start_iar.S']
|
|
|
|
CPPPATH = [cwd]
|
|
|
|
CPPDEFINES = [rtconfig.PART_TYPE]
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
Return('group')
|
|
|