SConscript 497 B

123456789101112131415161718192021
  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/Src/stm32h7xx_hal_msp.c')
  7. path = [cwd]
  8. path += [cwd + '/CubeMX_Config/Inc']
  9. CPPDEFINES = ['STM32H723xx']
  10. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  11. list = os.listdir(cwd)
  12. for item in list:
  13. if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
  14. group = group + SConscript(os.path.join(item, 'SConscript'))
  15. Return('group')