From e79be273d702b198c1718a6189fa752e28fd4c03 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 22 Nov 2017 12:46:06 +0100 Subject: poly1305: import MIPS64 primitive from OpenSSL Signed-off-by: Jason A. Donenfeld --- src/Kbuild | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/Kbuild') 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 -- cgit v1.2.3