From 6e8da46f28a4becbbd5f4299002dff69794adf10 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 3 Aug 2016 01:09:50 +0200 Subject: Kbuild: move module deps out of tests/ --- src/Kbuild | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/Kbuild') diff --git a/src/Kbuild b/src/Kbuild index bde4036..4c125fa 100644 --- a/src/Kbuild +++ b/src/Kbuild @@ -12,7 +12,22 @@ endif endif ifneq ($(KBUILD_EXTMOD),) -include $(M)/tests/moduledeps.mk +CONFIG_WIREGUARD := m +ifeq ($(CONFIG_WIREGUARD_PARALLEL),) +ifneq (,$(filter $(CONFIG_PADATA),y m)) +ccflags-y += -DCONFIG_WIREGUARD_PARALLEL=y +endif +endif +ifneq ($(CONFIG_MODULES),) +ifeq ($(CONFIG_NETFILTER_XT_MATCH_HASHLIMIT),) +$(error "WireGuard requires CONFIG_NETFILTER_XT_MATCH_HASHLIMIT to be configured in your kernel. See https://www.wireguard.io/install/#kernel-requirements for more info") +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. See https://www.wireguard.io/install/#kernel-requirements for more info.") +endif +endif +endif endif obj-$(CONFIG_WIREGUARD) := wireguard.o -- cgit v1.2.3-59-g8ed1b