kernel: migrate wireguard into the kernel tree
[openwrt/openwrt.git] / package / kernel / linux / modules / netsupport.mk
index 2c2fe82fa09ee9123353007aab6bb637e06bec42..13f2283944535c9980418f23cd0fac86aeeef271 100644 (file)
@@ -1250,3 +1250,33 @@ define KernelPackage/netlink-diag/description
 endef
 
 $(eval $(call KernelPackage,netlink-diag))
+
+
+define KernelPackage/wireguard
+  SECTION:=kernel
+  CATEGORY:=Kernel modules
+  SUBMENU:=Network Support
+  TITLE:=WireGuard kernel module
+  DEPENDS:= \
+         +kmod-crypto-lib-blake2s \
+         +kmod-crypto-lib-chacha20poly1305 \
+         +kmod-crypto-lib-curve25519 \
+         +kmod-udptunnel4 \
+         +IPV6:kmod-udptunnel6
+  KCONFIG:= \
+         CONFIG_WIREGUARD \
+         CONFIG_WIREGUARD_DEBUG=n
+  FILES:=$(LINUX_DIR)/drivers/net/wireguard/wireguard.ko
+  AUTOLOAD:=$(call AutoProbe,wireguard)
+endef
+
+define KernelPackage/wireguard/description
+  WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
+  state-of-the-art cryptography. It aims to be faster, simpler, leaner, and
+  more useful than IPSec, while avoiding the massive headache. It intends to
+  be considerably more performant than OpenVPN.  WireGuard is designed as a
+  general purpose VPN for running on embedded interfaces and super computers
+  alike, fit for many different circumstances. It uses UDP.
+endef
+
+$(eval $(call KernelPackage,wireguard))