[OpenWrt-Devel] [PATCH] modules: package l2tp_ip6.ko in kmod-l2tp-ip6
Daniel Golle
daniel at makrotopia.org
Thu Apr 30 19:40:17 EDT 2015
The L2TPv3-over-IPv6 kernel module wasn't included in any package.
Create a new package and make it depend on kmod-ipv6 and kmod-l2tp.
root at OpenWrt:~# modinfo /lib/modules/3.18.11/l2tp_ip6.ko
module: /lib/modules/3.18.11/l2tp_ip6.ko
license: GPL
depends: ipv6,l2tp_core
The module doesn't have a Kconfig symbol of it's own and is being
built if both, CONFIG_L2TP_IP and CONFIG_IPV6 are set, see
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a32e0eec7042b21ccb52896cf715e3e2641fed93
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
package/kernel/linux/modules/netsupport.mk | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
index 547e429..799e2dd 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -908,6 +908,21 @@ endef
$(eval $(call KernelPackage,l2tp-ip))
+define KernelPackage/l2tp-ip6
+ SUBMENU:=$(NETWORK_SUPPORT_MENU)
+ TITLE:=L2TP IP6 encapsulation for L2TPv3
+ DEPENDS:=+kmod-l2tp +kmod-ipv6
+ KCONFIG:=CONFIG_L2TP_IP
+ FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ip6.ko
+ AUTOLOAD:=$(call AutoLoad,33,l2tp_ip6)
+endef
+
+define KernelPackage/l2tp-ip6/description
+ Kernel modules for L2TP IP6 encapsulation for L2TPv3
+endef
+
+$(eval $(call KernelPackage,l2tp-ip6))
+
define KernelPackage/sctp
SUBMENU:=$(NETWORK_SUPPORT_MENU)
--
2.3.7
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list