mirror of https://github.com/RT-Thread/rt-thread
25 lines
621 B
Python
25 lines
621 B
Python
# for module compiling
|
|
import os
|
|
Import('RTT_ROOT')
|
|
Import('env')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
objs = []
|
|
list = os.listdir(cwd)
|
|
|
|
# STM32F100xB || STM32F100xE || STM32F101x6
|
|
# STM32F101xB || STM32F101xE || STM32F101xG
|
|
# STM32F102x6 || STM32F102xB || STM32F103x6
|
|
# STM32F103xB || STM32F103xE || STM32F103xG
|
|
# STM32F105xC || STM32F107xC)
|
|
# You can select chips from the list above
|
|
env.Append(CPPDEFINES = ['STM32F107xC'])
|
|
|
|
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')
|