From 1f7476b00adb704bbff64a98e65d483ae1e34bdd Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 6 Sep 2018 20:53:44 -0600 Subject: compat: arch-namespace certain includes --- src/compat/Kbuild.include | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/compat/Kbuild.include') diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include index 974c0d3..04ffdeb 100644 --- a/src/compat/Kbuild.include +++ b/src/compat/Kbuild.include @@ -25,16 +25,16 @@ ccflags-y += -I$(src)/compat/dst_cache/include wireguard-y += compat/dst_cache/dst_cache.o endif -ifeq ($(wildcard $(srctree)/arch/x86/include/asm/intel-family.h),) -ccflags-y += -I$(src)/compat/intel-family/include +ifeq ($(wildcard $(srctree)/arch/x86/include/asm/intel-family.h)$(CONFIG_X86),y) +ccflags-y += -I$(src)/compat/intel-family-x86/include endif -ifeq ($(wildcard $(srctree)/arch/x86/include/asm/fpu/api.h),) -ccflags-y += -I$(src)/compat/fpu/include +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),) -ccflags-y += -I$(src)/compat/simd/include +ifeq ($(wildcard $(srctree)/arch/x86/include/asm/simd.h)$(CONFIG_X86),y) +ccflags-y += -I$(src)/compat/simd-x86/include endif ifeq ($(wildcard $(srctree)/include/net/udp_tunnel.h),) @@ -48,10 +48,10 @@ wireguard-y += compat/memneq/memneq.o endif ifeq ($(wildcard $(srctree)/arch/arm/include/asm/neon.h)$(CONFIG_ARM),y) -ccflags-y += -I$(src)/compat/neon/include +ccflags-y += -I$(src)/compat/neon-arm/include endif ifeq ($(wildcard $(srctree)/arch/arm64/include/asm/neon.h)$(CONFIG_ARM64),y) -ccflags-y += -I$(src)/compat/neon/include +ccflags-y += -I$(src)/compat/neon-arm/include endif ifeq ($(CONFIG_X86_64),y) -- cgit v1.2.3-59-g8ed1b