blob: 3d47e7f082bf94e626ae67777af000247390b80d (
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
|
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = Split('''
board.c
MCUX_Config/board/clock_config.c
MCUX_Config/board/pin_mux.c
''')
linkflags = ''
if rtconfig.PLATFORM == 'armclang':
linkflags = ' --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab)'
group = DefineGroup(
'Drivers',
src,
depend=[''],
CPPPATH=[cwd, cwd + '/MCUX_Config/board'],
CPPDEFINES=['CPU_MCXC162VFT'],
LINKFLAGS=linkflags,
)
Return('group')
|