2012-06-01 15:31:15 +08:00
|
|
|
Import('RTT_ROOT')
|
2012-04-23 17:59:00 +08:00
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
2012-06-01 15:31:15 +08:00
|
|
|
src = ['Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c']
|
2012-04-23 17:59:00 +08:00
|
|
|
|
|
|
|
# add for startup script
|
|
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S']
|
|
|
|
elif rtconfig.CROSS_TOOL == 'keil':
|
|
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S']
|
|
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
|
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S']
|
|
|
|
|
2012-06-01 15:31:15 +08:00
|
|
|
CPPPATH = [cwd + '/Device/FUJISTU/MB9BF50x/Include']
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_BSP_CMSIS']):
|
|
|
|
CPPPATH += [cwd + '/CMSIS/Include']
|
|
|
|
elif GetDepend(['RT_USING_RTT_CMSIS']):
|
|
|
|
CPPPATH += [RTT_ROOT + '/components/CMSIS/Include']
|
2012-04-23 17:59:00 +08:00
|
|
|
|
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|