SConscript 616 B

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