From 5bbf58c4a6cf8992e219777795ed3cbfe1db799d Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Tue, 31 Mar 2026 22:33:44 +0800 Subject: [PATCH] kernel: modules: fix kmod-iavf dependencies Add missing dependency kmod-ptp to fix the build error. We also add symbol CONFIG_PTP_1588_CLOCK_OPTIONAL explicitly for kmod-ptp because it is selected by CONFIG_PTP_1588_CLOCK. Fix: Package kmod-iavf is missing dependencies for the following libraries: ptp.ko Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/22730 Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netdevices.mk | 2 +- package/kernel/linux/modules/other.mk | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 1d1d6ae5d6..4fe4decdbc 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -1543,7 +1543,7 @@ $(eval $(call KernelPackage,ice)) define KernelPackage/iavf SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=Intel(R) Ethernet Adaptive Virtual Function support - DEPENDS:=@PCI_SUPPORT +kmod-libie +!LINUX_6_12:kmod-libie-adminq + DEPENDS:=@PCI_SUPPORT +kmod-libie +!LINUX_6_12:kmod-libie-adminq +!LINUX_6_12:kmod-ptp KCONFIG:= \ CONFIG_I40EVF \ CONFIG_IAVF diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index e56cc8e64d..35d7c76aef 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -843,6 +843,7 @@ define KernelPackage/ptp DEPENDS:=+kmod-pps KCONFIG:= \ CONFIG_PTP_1588_CLOCK \ + CONFIG_PTP_1588_CLOCK_OPTIONAL \ CONFIG_NET_PTP_CLASSIFY=y FILES:=$(LINUX_DIR)/drivers/ptp/ptp.ko AUTOLOAD:=$(call AutoLoad,18,ptp,1)