rt-thread/bsp/smartfusion2/CMSIS/SConscript

18 lines
359 B
Python
Raw Normal View History

from building import *
import rtconfig
cwd = GetCurrentDir()
src = Glob('*.c')
if rtconfig.PLATFORM in ['gcc']:
2020-11-13 22:48:02 +08:00
src += ['startup_gcc/startup_m2sxxx.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup_arm/startup_m2sxxx.s']
CPPPATH = [cwd]
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
Return('group')