summaryrefslogtreecommitdiffhomepage
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
commit46b544083fec9b0a76dd15a5e0c685e935ef2ce5 (patch)
tree503924fd1b3f9155a941cdbf8eea73be1919d5d6 /src/compat/Kbuild.include
parent8d9c45ad72a61aa0e634a7f708de6a8f5f705294 (diff)
compat: ship padata if kernel doesn't have it
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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