summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32l552-st-nucleo/board/SConscript
blob: 9bb1cac6a48b1d116fbe8ead34687f1a1402b2ea (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 os
from building import *

cwd = GetCurrentDir()

# add general drivers
src = Split('''
board.c
CubeMX_Config/Src/stm32l5xx_hal_msp.c
''')
path =  [cwd]
path += [os.path.join(cwd, 'CubeMX_Config', 'Inc')]

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

# if os.path.isfile(os.path.join(cwd, "ports", 'SConscript')):
#     group = group + SConscript(os.path.join("ports", 'SConscript'))
list = os.listdir(cwd)
for item in list:
    if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
        group = group + SConscript(os.path.join(item, 'SConscript'))

Return('group')