mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
25 lines
648 B
Python
25 lines
648 B
Python
# for module compiling
|
|
import os
|
|
Import('RTT_ROOT')
|
|
Import('env')
|
|
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
objs = []
|
|
list = os.listdir(cwd)
|
|
|
|
# STM32F030x6 || STM32F030x8 || STM32F031x6
|
|
# STM32F038xx || STM32F042x6 || STM32F048xx
|
|
# STM32F070x6 || STM32F051x8 || STM32F058xx
|
|
# STM32F071xB || STM32F072xB || STM32F078xx
|
|
# STM32F070xB || STM32F091xC || STM32F098xx || STM32F030xC
|
|
# You can select chips from the list above
|
|
env.Append(CPPDEFINES=['STM32F091xC'])
|
|
|
|
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')
|