SConscript 755 B

12345678910111213141516171819202122232425262728293031
  1. '''
  2. Author: spaceman
  3. Date: 2023-03-21 02:10:16
  4. LastEditTime: 2023-03-25 18:59:06
  5. LastEditors: spaceman
  6. Description:
  7. FilePath: \stm32h750-fk750m1-vbt6\board\SConscript
  8. '''
  9. import os
  10. from building import *
  11. cwd = GetCurrentDir()
  12. # add the general drivers.
  13. src = Glob('board.c')
  14. src += Glob('CubeMX_Config/Src/stm32h7xx_hal_msp.c')
  15. path = [cwd]
  16. path += [cwd + '/CubeMX_Config/Inc']
  17. # STM32H743xx || STM32H750xx || STM32F753xx
  18. # You can select chips from the list above
  19. CPPDEFINES = ['STM32H750xx']
  20. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  21. list = os.listdir(cwd)
  22. for item in list:
  23. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  24. group = group + SConscript(os.path.join(item, 'SConscript'))
  25. Return('group')