1
0

SConscript 457 B

1234567891011121314151617181920212223
  1. from building import *
  2. cwd = GetCurrentDir()
  3. # add general drivers
  4. src = Split('''
  5. board.c
  6. CubeMX_Config/Src/stm32l4xx_hal_msp.c
  7. ''')
  8. if GetDepend(['BSP_USING_QSPI_FLASH']):
  9. src += Glob('ports/drv_qspi_flash.c')
  10. if GetDepend(['BSP_USING_SDCARD']):
  11. src += Glob('ports/sdcard_port.c')
  12. path = [cwd]
  13. path += [cwd + '/CubeMX_Config/Inc']
  14. path += [cwd + '/ports']
  15. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
  16. Return('group')