SConscript 623 B

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