diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-22 14:40:49 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-30 18:07:28 +0200 |
commit | 44cf477cfa07a1b0750e4a7688241083e35cefae (patch) | |
tree | 7c1df7a901a6568a192a10e16f48897dbacda38b /src/Kbuild | |
parent | man: update wg-quick(8) to show Debian resolvconf braindamage (diff) | |
download | wireguard-monolithic-historical-44cf477cfa07a1b0750e4a7688241083e35cefae.tar.xz wireguard-monolithic-historical-44cf477cfa07a1b0750e4a7688241083e35cefae.zip |
compat: ship padata if kernel doesn't have it
Diffstat (limited to '')
-rw-r--r-- | src/Kbuild | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -24,26 +24,18 @@ ifeq ($(CONFIG_ARM),y) wireguard-y += crypto/chacha20-neon-arm.o endif - -include $(src)/compat/Kbuild.include - ifneq ($(KBUILD_EXTMOD),) CONFIG_WIREGUARD := m -ifeq ($(CONFIG_WIREGUARD_PARALLEL),) -ifneq (,$(filter $(CONFIG_PADATA),y m)) +ifneq ($(CONFIG_SMP),) 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 +include $(src)/compat/Kbuild.include + obj-$(CONFIG_WIREGUARD) := wireguard.o |