From: Weijie Gao Date: Sat, 6 Jan 2024 07:09:12 +0000 (+0800) Subject: kernel: modules: netsupport: adapt for kernel 6.6 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=48b52d51dcb976a57875435786562987d5b8d2f7;p=openwrt%2Fstaging%2Frmilecki.git kernel: modules: netsupport: adapt for kernel 6.6 Adapt netsupport kmods for building under kernel 6.6: * common part of mqprio was split into a new Kconfig since 6.3. Add new kmod-sched-mqprio-common as dependency for kmod-sched-mqprio. Signed-off-by: Weijie Gao --- diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index 535c087decd..0ee58fada47 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -907,10 +907,26 @@ endef $(eval $(call KernelPackage,sched-ipset)) +define KernelPackage/sched-mqprio-common + SUBMENU:=$(NETWORK_SUPPORT_MENU) + TITLE:=mqprio queue common dependencies support + DEPENDS:=@LINUX_6_6 + HIDDEN:=1 + KCONFIG:=CONFIG_NET_SCH_MQPRIO_LIB + FILES:=$(LINUX_DIR)/net/sched/sch_mqprio_lib.ko +endef + +define KernelPackage/sched-mqprio-common/description + Common library for manipulating mqprio queue configurations +endef + +$(eval $(call KernelPackage,sched-mqprio-common)) + + define KernelPackage/sched-mqprio SUBMENU:=$(NETWORK_SUPPORT_MENU) TITLE:=Multi-queue priority scheduler (MQPRIO) - DEPENDS:=+kmod-sched-core + DEPENDS:=+kmod-sched-core +LINUX_6_6:kmod-sched-mqprio-common KCONFIG:=CONFIG_NET_SCH_MQPRIO FILES:=$(LINUX_DIR)/net/sched/sch_mqprio.ko AUTOLOAD:=$(call AutoProbe, sch_mqprio)