SConscript 575 B

12345678910111213141516171819202122232425262728
  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_SPI_LCD']):
  9. src += Glob('ports/drv_spi_lcd.c')
  10. if GetDepend(['BSP_USING_SDCARD']):
  11. src += Glob('ports/sdcard_port.c')
  12. if GetDepend(['BSP_USING_ON_CHIP_FLASH']):
  13. src += Glob('mnt.c')
  14. path = [cwd]
  15. path += [cwd + '/CubeMX_Config/Inc']
  16. path += [cwd + '/ports']
  17. CPPDEFINES = ['STM32L496xx']
  18. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
  19. Return('group')