]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: modules: fix kmod-iavf dependencies
authorShiji Yang <yangshiji66@outlook.com>
Tue, 31 Mar 2026 14:33:44 +0000 (22:33 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 5 Apr 2026 23:38:41 +0000 (01:38 +0200)
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 <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22730
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/netdevices.mk
package/kernel/linux/modules/other.mk

index 1d1d6ae5d61de07c5697535913abf9cb47371ddf..4fe4decdbc33506c6ff2e119699a2704f9aeff93 100644 (file)
@@ -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
index e56cc8e64ddafa613a726d975bb3492af9b8ae1f..35d7c76aef98b53d44b3ceff992595e926a6a66b 100644 (file)
@@ -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)