diff --git a/bsp/imxrt/drivers/SConscript b/bsp/imxrt/drivers/SConscript index ef3f86be30..1b44c183d0 100644 --- a/bsp/imxrt/drivers/SConscript +++ b/bsp/imxrt/drivers/SConscript @@ -13,6 +13,10 @@ 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'] diff --git a/bsp/imxrt/project.ewp b/bsp/imxrt/project.ewp index bb3dae2d51..13fae04f87 100644 --- a/bsp/imxrt/project.ewp +++ b/bsp/imxrt/project.ewp @@ -198,7 +198,7 @@ @@ -216,6 +216,7 @@