23 lines
513 B
Python
23 lines
513 B
Python
# 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']
|
|
|
|
|
|
# add for startup script
|
|
if rtconfig.CROSS_TOOL == 'gcc':
|
|
src += ['startup/gcc_startup_lpc5410x.c']
|
|
elif rtconfig.CROSS_TOOL == 'keil':
|
|
src += ['startup/keil_startup_lpc5410x.s']
|
|
|
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
|
|
|
Return('group')
|