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.
17 lines
355 B
17 lines
355 B
from building import *
|
|
import rtconfig
|
|
|
|
cwd = GetCurrentDir()
|
|
src = Glob('*.c')
|
|
|
|
if rtconfig.PLATFORM in ['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')
|
|
|