diff --git a/bsp/imxrt/drivers/SConscript b/bsp/imxrt/drivers/SConscript
index ef3f86be3045747714ea1427c237211c7f35fe9b..1b44c183d01278033819cbcf0110936cafa00b22 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 bb3dae2d5111d771ba76cf26d9b513222e672dab..13fae04f8776eb38fa739294725b71281e5ce676 100644
--- a/bsp/imxrt/project.ewp
+++ b/bsp/imxrt/project.ewp
@@ -198,7 +198,7 @@
@@ -216,6 +216,7 @@