summaryrefslogtreecommitdiff
path: root/bsp/lm4f232/Libraries/SConscript
blob: 79d52c9e0e8476e1397e237d2c9d048787fff36e (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
28
29
Import('RTT_ROOT')
Import('rtconfig')
from building import *

# The set of source files associated with this SConscript file.
cwd     = GetCurrentDir()
src = Glob('driverlib/*.c')

# cortex-m3 no FPU.
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
     SrcRemove(src, 'fpu.c')

# add for startup script
if rtconfig.PLATFORM in ['gcc']:
    src += ['startup/gcc/start_gcc.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
    src += ['startup/arm/start_rvds.S']
elif rtconfig.PLATFORM in ['iccarm']:
    src += ['startup/iar/start_iar.S']

CPPPATH = [cwd]

CPPDEFINES = [rtconfig.PART_TYPE]
if rtconfig.PLATFORM in ['gcc']:
    CPPDEFINES += ['gcc'];

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

Return('group')