SConscript 762 B

12345678910111213141516171819202122232425262728293031
  1. from building import *
  2. cwd = GetCurrentDir()
  3. # add the general drivers.
  4. src = Split("""
  5. board.c
  6. cherryusb_port.c
  7. MCUX_Config/board/clock_config.c
  8. MCUX_Config/board/pin_mux.c
  9. """)
  10. if GetDepend(['BSP_USING_SPI6_SAMPLE']):
  11. src += Glob('ports/spi_sample.c')
  12. if GetDepend(['BSP_USING_RW007']):
  13. src += Glob('ports/drv_spi_sample_rw007.c')
  14. if GetDepend(['RT_USING_SFUD']):
  15. src += Glob('ports/drv_filesystem_spi_flash.c')
  16. if GetDepend(['PKG_USING_CJSON']) and GetDepend(['PKG_USING_WEBCLIENT']):
  17. src += Glob('ports/wifi_weather_sample.c')
  18. CPPPATH = [cwd, cwd + '/MCUX_Config/board']
  19. CPPDEFINES = ['DEBUG', 'CPU_MCXN947VDF_cm33_core0']
  20. group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
  21. Return('group')