summaryrefslogtreecommitdiff
path: root/bsp/stm32/stm32l010-st-nucleo/SConscript
blob: f7926c89aa233bfcf28728d8da944f80f8b24206 (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)

# STM32L052xx || STM32L053xx || STM32L062xx
# STM32L063xx || STM32L072xx || STM32L073xx
# STM32L082xx ||  STM32L083xx
# You can select chips from the list above
env.Append(CPPDEFINES = ['STM32L053xx'])

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