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