2011-07-02 16:03:25 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
2012-03-05 09:13:30 +08:00
|
|
|
src = Glob('*.c')
|
2011-12-22 08:46:34 +08:00
|
|
|
|
|
|
|
# add for startup script
|
|
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
|
|
src = src + ['start_gcc.S']
|
|
|
|
elif rtconfig.CROSS_TOOL == 'keil':
|
|
|
|
src = src + ['start_rvds.S']
|
|
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
|
|
|
src = src + ['start_iar.S']
|
|
|
|
|
2011-07-02 16:03:25 +08:00
|
|
|
CPPPATH = [GetCurrentDir()]
|
|
|
|
|
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, LIBRARY = '')
|
|
|
|
|
|
|
|
Return('group')
|