From: Shiji Yang Date: Thu, 13 Aug 2026 23:21:54 +0000 (+0800) Subject: kernel: fix kmod-switch-rtl8366-smi dependencies for econet target X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F24727%2Fhead;p=thirdparty%2Fopenwrt.git 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 --- 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)