SConscript 701 字节
Newer Older
M
Ming, Bai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
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 
14
if rtconfig.PLATFORM in ['gcc']:
M
Ming, Bai 已提交
15
	src += ['startup/gcc/start_gcc.S']
16
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
M
Ming, Bai 已提交
17 18 19 20 21 22 23 24 25 26
	src += ['startup/arm/start_rvds.S']
elif rtconfig.CROSS_TOOL == 'iar':
	src += ['startup/iar/start_iar.S']

CPPPATH = [cwd]

CPPDEFINES = [rtconfig.PART_TYPE]
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)

Return('group')