SConscript 581 B

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