diff options
Diffstat (limited to 'bsp/imxrt1052-evk/drivers/SConscript')
| -rw-r--r-- | bsp/imxrt1052-evk/drivers/SConscript | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bsp/imxrt1052-evk/drivers/SConscript b/bsp/imxrt1052-evk/drivers/SConscript new file mode 100644 index 0000000000..1b44c183d0 --- /dev/null +++ b/bsp/imxrt1052-evk/drivers/SConscript @@ -0,0 +1,25 @@ +Import('RTT_ROOT') +Import('rtconfig') +from building import * + +cwd = os.path.join(str(Dir('#')), 'drivers') + +# add the general drivers. +src = Split(""" +board.c +usart.c +""") + +CPPPATH = [cwd] +CPPDEFINES = [] + +if GetDepend('RT_USING_LWIP'): + src += ['drv_eth.c', 'fsl_phy.c'] + CPPDEFINES += ['FSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE'] + +if GetDepend('RT_USING_SDIO'): + src += ['drv_sdio.c'] + +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES) + +Return('group') |
