From: Petr Štetiar Date: Mon, 11 Apr 2022 14:51:12 +0000 (+0200) Subject: kernel: mdio-devres: fix of-mdio dependency X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0fa0a19a607845d98946d9412ce2386bda03358a;p=openwrt%2Fstaging%2Flinusw.git kernel: mdio-devres: fix of-mdio dependency armvirt/64 when compiled with ALL_KMODS=y reports following: Package kmod-mdio-devres is missing dependencies for the following libraries: of_mdio.ko Signed-off-by: Petr Štetiar --- diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 6576b6bae2..18fbf498dd 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -141,7 +141,7 @@ $(eval $(call KernelPackage,mii)) define KernelPackage/mdio-devres SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=Supports MDIO device registration - DEPENDS:=@(LINUX_5_10||LINUX_5_15) +kmod-libphy PACKAGE_kmod-of-mdio:kmod-of-mdio + DEPENDS:=@(LINUX_5_10||LINUX_5_15) +kmod-libphy +(TARGET_armvirt||TARGET_bcm27xx_bcm2708||TARGET_tegra):kmod-of-mdio KCONFIG:=CONFIG_MDIO_DEVRES HIDDEN:=1 FILES:=$(LINUX_DIR)/drivers/net/phy/mdio_devres.ko