summaryrefslogtreecommitdiff
path: root/bsp/apollo2/libraries/startup/SConscript
blob: eb0301121ebb68c553b3992763dcc273bbd7e30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import rtconfig
Import('RTT_ROOT')
from building import *

# get current directory
cwd = GetCurrentDir()

src = Split("""

""")

# add for startup script
if rtconfig.PLATFORM in ['gcc']:
    src = src + ['gcc/' + 'startup_gcc.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
    src = src + ['arm/' + 'startup_keil.s']
elif rtconfig.PLATFORM in ['iccarm']:
    src = src + ['iar/' + 'startup_iar.c']

path = [cwd]
path += [cwd + '/cmsis/include']

CPPDEFINES = ['AM_PACKAGE_BGA', 'AM_PART_APOLLO2']

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

Return('group')