summaryrefslogtreecommitdiffhomepage
path: root/src/Kbuild
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-22 12:46:06 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-22 18:32:48 +0100
commite79be273d702b198c1718a6189fa752e28fd4c03 (patch)
tree5a1b733a39b09b4600ca2c5a75447449fb4acaa2 /src/Kbuild
parent0aa65c6f0544bfa9ed9b5f73c4197e91bf2ed2d5 (diff)
poly1305: import MIPS64 primitive from OpenSSL
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/Kbuild')
-rw-r--r--src/Kbuild7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Kbuild b/src/Kbuild
index 64ff971..9846522 100644
--- a/src/Kbuild
+++ b/src/Kbuild
@@ -8,11 +8,8 @@ wireguard-y += crypto/curve25519.o crypto/chacha20poly1305.o crypto/blake2s.o
wireguard-$(CONFIG_X86_64) += crypto/chacha20-x86_64.o crypto/poly1305-x86_64.o crypto/blake2s-x86_64.o crypto/curve25519-x86_64.o
wireguard-$(CONFIG_ARM) += crypto/chacha20-arm.o crypto/poly1305-arm.o crypto/curve25519-arm.o
wireguard-$(CONFIG_ARM64) += crypto/chacha20-arm64.o crypto/poly1305-arm64.o
-
-ifneq ($(KBUILD_EXTMOD),)
-CONFIG_WIREGUARD := m
-endif
+wireguard-$(if $(filter yy,$(CONFIG_MIPS)$(CONFIG_64BIT)),y,n) += crypto/poly1305-mips64.o
include $(src)/compat/Kbuild.include
-obj-$(CONFIG_WIREGUARD) := wireguard.o
+obj-$(if $(KBUILD_EXTMOD),m,$(CONFIG_WIREGUARD)) := wireguard.o