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 <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22730
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Shiji Yang 2026-03-31 22:33:44 +08:00 committed by Hauke Mehrtens
parent cce5a153f7
commit 5bbf58c4a6
2 changed files with 2 additions and 1 deletions

View 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

View 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)