summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32f767-st-nucleo/SConscript
blob: ef510f9d5e2b5c2d25e583038ef1f9cd2c0e3aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# for module compiling
import os
Import('RTT_ROOT')
Import('env')
from building import *

cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)

# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx  ||
# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx  ||
# STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx  || STM32F750xx
# You can select chips from the list above
env.Append(CPPDEFINES = ['STM32F767xx'])

for d in list:
    path = os.path.join(cwd, d)
    if os.path.isfile(os.path.join(path, 'SConscript')):
        objs = objs + SConscript(os.path.join(d, 'SConscript'))

Return('objs')