SConscript 772 B

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