rt-thread/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/SConscript

28 lines
623 B
Python
Raw Normal View History

2024-01-29 18:18:15 +08:00
from building import *
cwd = GetCurrentDir()
# add the general drivers.
src = Split("""
board.c
MCUX_Config/board/clock_config.c
MCUX_Config/board/pin_mux.c
""")
if GetDepend(['BSP_USING_SPI6_SAMPLE']):
src += Glob('ports/spi_sample.c')
if GetDepend(['BSP_USING_RW007']):
src += Glob('ports/drv_spi_sample_rw007.c')
2024-04-15 17:18:00 +08:00
if GetDepend(['RT_USING_SFUD']):
src += Glob('ports/drv_filesystem_spi_flash.c')
2024-01-29 18:18:15 +08:00
CPPPATH = [cwd, cwd + '/MCUX_Config/board']
CPPDEFINES = ['DEBUG', 'CPU_MCXN947VDF_cm33_core0']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
Return('group')