2013-01-08 22:40:58 +08:00
|
|
|
Import('RTT_ROOT')
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Glob('*.c')
|
|
|
|
src = ['Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c']
|
|
|
|
|
|
|
|
# add for startup script
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2013-01-08 22:40:58 +08:00
|
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S']
|
2022-04-20 09:56:04 +08:00
|
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2013-01-08 22:40:58 +08:00
|
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S']
|
|
|
|
elif rtconfig.CROSS_TOOL == 'iar':
|
|
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S']
|
|
|
|
|
|
|
|
CPPPATH = [cwd + '/Device/FUJISTU/MB9BF50x/Include']
|
|
|
|
|
2019-03-26 13:58:33 +08:00
|
|
|
CPPPATH += [cwd + '/CMSIS/Include']
|
2013-01-08 22:40:58 +08:00
|
|
|
|
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|