aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/Kbuild.include
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-05-22 14:40:49 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-05-30 18:07:28 +0200
commit44cf477cfa07a1b0750e4a7688241083e35cefae (patch)
tree7c1df7a901a6568a192a10e16f48897dbacda38b /src/compat/Kbuild.include
parentman: update wg-quick(8) to show Debian resolvconf braindamage (diff)
downloadwireguard-monolithic-historical-44cf477cfa07a1b0750e4a7688241083e35cefae.tar.xz
wireguard-monolithic-historical-44cf477cfa07a1b0750e4a7688241083e35cefae.zip
compat: ship padata if kernel doesn't have it
Diffstat (limited to 'src/compat/Kbuild.include')
-rw-r--r--src/compat/Kbuild.include8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include
index aacc9f6..688a573 100644
--- a/src/compat/Kbuild.include
+++ b/src/compat/Kbuild.include
@@ -31,3 +31,11 @@ ifeq ($(shell grep -F "int crypto_memneq" "$(srctree)/include/crypto/algapi.h"),
ccflags-y += -include $(src)/compat/memneq/include.h
wireguard-y += compat/memneq/memneq.o
endif
+
+ifneq ($(KBUILD_EXTMOD),)
+ifneq ($(CONFIG_SMP),)
+ifeq (,$(filter $(CONFIG_PADATA),y m))
+wireguard-y += compat/padata/padata.o
+endif
+endif
+endif