summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32n657-st-nucleo/board/SConscript
blob: 6103d7a8692546e67e6c236189e112432b03ae1a (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
import os
from building import *
Import('rtconfig')

cwd = GetCurrentDir()

src = Split('''
board.c
CubeMX_Config/Appli/Src/secure_nsc.c
CubeMX_Config/Appli/Src/stm32n6xx_hal_msp.c
''')

path = [cwd]
path += [os.path.join(cwd, 'CubeMX_Config', 'Appli', 'Inc')]
path += [os.path.join(cwd, 'CubeMX_Config', 'Secure_nsclib')]

# STM32N657xx
# You can select chips from the list above
CPPDEFINES = ['STM32N657xx']

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

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')