1# for module compiling 2import os 3Import('RTT_ROOT') 4Import('env') 5from building import * 6 7cwd = GetCurrentDir() 8objs = [] 9list = os.listdir(cwd) 10 11# STM32F205xx || STM32F207xx || STM32F215xx 12# STM32F217xx 13# You can select chips from the list above 14env.Append(CPPDEFINES = ['STM32F207xx']) 15 16for d in list: 17 path = os.path.join(cwd, d) 18 if os.path.isfile(os.path.join(path, 'SConscript')): 19 objs = objs + SConscript(os.path.join(d, 'SConscript')) 20 21Return('objs') 22