aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Kbuild
diff options
context:
space:
mode:
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