kernel: Add kmod-sctp-diag
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Jun 2024 16:28:40 +0000 (18:28 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 3 Jul 2024 11:11:02 +0000 (13:11 +0200)
Package the sctp_diag.ko file which already gets build when kmod-sctp
and kmod-inet-diag are selected.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://github.com/openwrt/openwrt/pull/15833
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/kernel/linux/modules/netsupport.mk

index e56defad38cc7fd35cc793043ca1a15dee4304e1..00dfb98d79f4a01ecbd829120d5edcd301209aa5 100644 (file)
@@ -1245,6 +1245,18 @@ endef
 $(eval $(call KernelPackage,sctp))
 
 
+define KernelPackage/sctp-diag
+  SUBMENU:=$(NETWORK_SUPPORT_MENU)
+  TITLE:=SCTP diag support
+  DEPENDS:=+kmod-sctp +kmod-inet-diag
+  KCONFIG:=CONFIG_INET_SCTP_DIAG
+  FILES:= $(LINUX_DIR)/net/sctp/sctp_diag.ko
+  AUTOLOAD:= $(call AutoLoad,33,sctp_diag)
+endef
+
+$(eval $(call KernelPackage,sctp-diag))
+
+
 define KernelPackage/netem
   SUBMENU:=$(NETWORK_SUPPORT_MENU)
   TITLE:=Network emulation functionality