SConscript 595 B

1234567891011121314151617181920212223
  1. import os
  2. from building import *
  3. cwd = GetCurrentDir()
  4. # add the general drivers.
  5. src = Glob('board.c')
  6. src += Glob('CubeMX_Config/Core/Src/stm32h7xx_hal_msp.c')
  7. path = [cwd]
  8. path += [cwd + '/CubeMX_Config/Core/Inc']
  9. # STM32H743xx || STM32H750xx || STM32F753xx
  10. # You can select chips from the list above
  11. CPPDEFINES = ['STM32H743xx']
  12. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  13. list = os.listdir(cwd)
  14. for item in list:
  15. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  16. group = group + SConscript(os.path.join(item, 'SConscript'))
  17. Return('group')