rt-thread-official/bsp/lpc408x/Libraries/Device/SConscript

24 lines
826 B
Python
Raw Normal View History

2014-01-02 18:30:13 +08:00
# RT-Thread building script for component
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = Split('''
NXP/LPC407x_8x_177x_8x/Source/Templates/system_LPC407x_8x_177x_8x.c
''')
CPPPATH = [cwd + '/NXP/LPC407x_8x_177x_8x/Include', cwd + '/../CMSIS/Include']
CPPDEFINES = ['CORE_M4']
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 += ['NXP/LPC407x_8x_177x_8x/Source/Templates/GCC/startup_LPC407x_8x_177x_8x.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
2023-01-09 10:14:23 +08:00
src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/ARM/startup_LPC407x_8x_177x_8x.s']
elif rtconfig.PLATFORM in ['iccarm']:
2023-01-09 10:14:23 +08:00
src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/IAR/startup_LPC407x_8x_177x_8x.s']
2014-01-02 18:30:13 +08:00
2015-10-15 23:14:27 +08:00
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
2014-01-02 18:30:13 +08:00
Return('group')