From 308bb40b9a29362baa7b62673d8b824ce3533591 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Fri, 14 Aug 2026 07:21:54 +0800 Subject: [PATCH] kernel: fix kmod-switch-rtl8366-smi dependencies for econet target Add missing dependent package kmod-of-mdio to fix build error: Package kmod-switch-rtl8366-smi is missing dependencies for the following libraries: of_mdio.ko Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/24727 Signed-off-by: Robert Marko --- package/kernel/linux/modules/netdevices.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 29cc43da781..023af4d0974 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -1089,7 +1089,7 @@ $(eval $(call KernelPackage,switch-rtl8306)) define KernelPackage/switch-rtl8366-smi SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=Realtek RTL8366 SMI switch interface support - DEPENDS:=@GPIO_SUPPORT +kmod-swconfig +(TARGET_armsr||TARGET_bcm27xx_bcm2708||TARGET_loongarch64||TARGET_malta||TARGET_tegra):kmod-of-mdio + DEPENDS:=@GPIO_SUPPORT +kmod-swconfig +(TARGET_armsr||TARGET_bcm27xx_bcm2708||TARGET_econet||TARGET_loongarch64||TARGET_malta||TARGET_tegra):kmod-of-mdio KCONFIG:=CONFIG_RTL8366_SMI FILES:=$(LINUX_DIR)/drivers/net/phy/rtl8366_smi.ko AUTOLOAD:=$(call AutoLoad,42,rtl8366_smi,1) -- 2.47.3