You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
691 B
23 lines
691 B
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
|
|
if rtconfig.PLATFORM in ['gcc']:
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S']
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S']
|
|
elif rtconfig.PLATFORM in ['iccarm']:
|
|
src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S']
|
|
|
|
CPPPATH = [cwd + '/Device/FUJISTU/MB9BF50x/Include']
|
|
|
|
CPPPATH += [cwd + '/CMSIS/Include']
|
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|
|
|