Man, Jianting (Meco) a0f8d43744
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM (#5802)
* [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
2022-04-20 09:56:04 +08:00

18 lines
357 B
Python

from building import *
import rtconfig
cwd = GetCurrentDir()
src = Glob('*.c')
if rtconfig.PLATFORM == 'gcc':
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')