From bddaca79f57aac71d63d2cb4713de5ee4320cc28 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 7 Oct 2018 00:19:14 +0200 Subject: compat: make asm/simd.h conditional on its existence Android kernels backported it, complicating things. --- src/compat/Kbuild.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compat/Kbuild.include') 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),) -- cgit v1.2.3-59-g8ed1b