2011-06-23 08:47:34 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
2011-12-23 09:36:10 +08:00
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('driverlib/*.c')
|
2011-06-23 08:47:34 +08:00
|
|
|
|
2011-12-23 09:36:10 +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']
|
2011-06-23 08:47:34 +08:00
|
|
|
|
2011-12-23 09:36:10 +08:00
|
|
|
CPPPATH = [cwd]
|
|
|
|
|
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH)
|
2011-06-23 08:47:34 +08:00
|
|
|
|
|
|
|
Return('group')
|