1# for module compiling 2import os 3Import('RTT_ROOT') 4Import('env') 5from building import * 6 7cwd = GetCurrentDir() 8objs = [] 9list = os.listdir(cwd) 10 11# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || 12# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || 13# STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx || STM32F750xx 14# You can select chips from the list above 15env.Append(CPPDEFINES = ['STM32F723xx']) 16 17for d in list: 18 path = os.path.join(cwd, d) 19 if os.path.isfile(os.path.join(path, 'SConscript')): 20 objs = objs + SConscript(os.path.join(d, 'SConscript')) 21 22Return('objs') 23