aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index f658968..e34fae7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -14,6 +14,38 @@ endif
endif
endif
+ifneq ($(KBUILD_EXTMOD),)
+ifneq ($(CONFIG_MODULES),)
+ifeq ($(CONFIG_NET_UDP_TUNNEL),)
+$(error "WireGuard requires CONFIG_NET_UDP_TUNNEL to be configured in your kernel. The easiest way to select it is: \
+ Networking support --> \
+ Networking options --> \
+ [*] IP: Foo (IP protocols) over UDP")
+endif
+ifeq ($(CONFIG_IPV6),)
+$(error "WireGuard requires CONFIG_IPV6 to be configured in your kernel. The easiest way to select it is: \
+ Networking support --> \
+ Networking options --> \
+ [*] The IPv6 protocol")
+endif
+ifeq ($(CONFIG_NETFILTER_XT_MATCH_HASHLIMIT),)
+$(error "WireGuard requires CONFIG_NETFILTER_XT_MATCH_HASHLIMIT to be conifugred in your kernel. The easiest way to selectit is: \
+ Networking support --> \
+ Networking options --> \
+ Network packet filtering framework (Netfilter) --> \
+ Core Netfilter Configuration --> \
+ [*] \"hashlimit\" match support")
+endif
+ifeq ($(CONFIG_PADATA),)
+ifneq ($(CONFIG_SMP),)
+$(warning "PEFORMANCE WARNING: WireGuard has enormous speed benefits when using CONFIG_PADATA on SMP systems. Please enable CONFIG_PADATA in your kernel configuration. The easiest way to select it is: \
+ Cryptographic API --> \
+ [*] Parallel crypto engine")
+endif
+endif
+endif
+endif
+
wireguard-y := main.o noise.o device.o peer.o timers.o data.o send.o receive.o socket.o config.o hashtables.o routing-table.o ratelimiter.o cookie.o
wireguard-y += crypto/curve25519.o crypto/chacha20poly1305.o crypto/blake2s.o crypto/siphash24.o
ifeq ($(CONFIG_X86_64),y)