2014-12-16 19:54:29 +08:00
|
|
|
# RT-Thread building script for component
|
|
|
|
|
|
|
|
Import('rtconfig')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = Split('''
|
|
|
|
startup/sysinit.c
|
|
|
|
''')
|
|
|
|
CPPPATH = [cwd + '/../CMSIS/Include']
|
|
|
|
CPPDEFINES = ['CORE_M4']
|
|
|
|
|
|
|
|
|
2023-01-09 10:14:23 +08:00
|
|
|
# add for startup script
|
2022-05-31 06:04:05 +08:00
|
|
|
if rtconfig.PLATFORM in ['gcc']:
|
2023-01-09 10:14:23 +08:00
|
|
|
src += ['startup/gcc_startup_lpc5410x.c']
|
2022-04-20 09:56:04 +08:00
|
|
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
2014-12-16 19:54:29 +08:00
|
|
|
src += ['startup/keil_startup_lpc5410x.s']
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2014-12-16 19:54:29 +08:00
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
|
|
|
|
Return('group')
|