SConscript 473 B

123456789101112131415161718192021
  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. # STM32F205xx || STM32F207xx || STM32F215xx
  10. # STM32F217xx
  11. # You can select chips from the list above
  12. env.Append(CPPDEFINES = ['STM32F207xx'])
  13. for d in list:
  14. path = os.path.join(cwd, d)
  15. if os.path.isfile(os.path.join(path, 'SConscript')):
  16. objs = objs + SConscript(os.path.join(d, 'SConscript'))
  17. Return('objs')