aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/Kbuild.include
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-07 00:19:14 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-07 02:24:31 +0200
commitbddaca79f57aac71d63d2cb4713de5ee4320cc28 (patch)
tree7e3bdb638ccdbdcdaf8289acca2cc39bff49aed4 /src/compat/Kbuild.include
parentcompat: account for ancient ARM assembler (diff)
downloadwireguard-monolithic-historical-bddaca79f57aac71d63d2cb4713de5ee4320cc28.tar.xz
wireguard-monolithic-historical-bddaca79f57aac71d63d2cb4713de5ee4320cc28.zip
compat: make asm/simd.h conditional on its existence
Android kernels backported it, complicating things.
Diffstat (limited to '')
-rw-r--r--src/compat/Kbuild.include4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include
index 879aa84..0e70006 100644
--- a/src/compat/Kbuild.include
+++ b/src/compat/Kbuild.include
@@ -33,8 +33,8 @@ ifeq ($(wildcard $(srctree)/arch/x86/include/asm/fpu/api.h)$(CONFIG_X86),y)
ccflags-y += -I$(src)/compat/fpu-x86/include
endif
-ifeq ($(wildcard $(srctree)/arch/x86/include/asm/simd.h)$(CONFIG_X86),y)
-ccflags-y += -I$(src)/compat/simd-x86/include
+ifeq ($(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/simd.h)$(shell grep -F "generic-y += simd.h" "$(srctree)/arch/$(SRCARCH)/Kbuild"),)
+ccflags-y += -I$(src)/compat/simd-asm/include
endif
ifeq ($(wildcard $(srctree)/include/linux/simd.h),)