rt-thread/bsp/nxp/lpc/lpc178x/CMSIS/SConscript

21 lines
755 B
Python
Raw Normal View History

2013-01-08 22:40:58 +08:00
Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
2023-01-09 10:14:23 +08:00
src = Glob('*.c')
2013-01-08 22:40:58 +08:00
src = ['CM3/CoreSupport/core_cm3.c', 'CM3/DeviceSupport/NXP/LPC177x_8x/system_LPC177x_8x.c']
CPPPATH = [cwd + '/CM3/CoreSupport', cwd + '/CM3/DeviceSupport/NXP/LPC177x_8x/']
2023-01-09 10:14:23 +08:00
# add for startup script
if rtconfig.PLATFORM in ['gcc']:
2023-01-09 10:14:23 +08:00
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
2023-01-09 10:14:23 +08:00
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/arm/startup_LPC177x_8x.s']
elif rtconfig.PLATFORM in ['iccarm']:
2023-01-09 10:14:23 +08:00
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/iar/startup_LPC177x_8x.s']
2013-01-08 22:40:58 +08:00
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
Return('group')