summaryrefslogtreecommitdiff
path: root/bsp/xplorer4330/libraries/startup_code/SConscript
blob: e1f355b06308b0258beb44a863ea8bdb2899c834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Import('RTT_ROOT')
Import('rtconfig')
from building import *

# add for startup code
if rtconfig.CROSS_TOOL == 'gcc':
    src = ['gcc_startup_lpc18xx43xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
    src = ['keil_startup_lpc18xx43xx.s']
elif rtconfig.CROSS_TOOL == 'iar':
    src = ['iar_startup_lpc18xx43xx.s']

if GetDepend(['RT_USING_BSP_CMSIS']):
    path = [cwd + '/CM3/CoreSupport']
    src += ['CM3/CoreSupport/core_cm3.c']
elif GetDepend(['RT_USING_RTT_CMSIS']):
    path = [RTT_ROOT + '/components/CMSIS/Include']

CPPDEFINES = ['CORE_M4']
group = DefineGroup('startup', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)

Return('group')