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