summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-09-12 06:25:19 +0200
committerMax Filippov <jcmvbkbc@gmail.com>2018-09-12 07:09:48 +0200
commit8e966fab8eeb45db9f5a570ac4521f684d9696e1 (patch)
treee24c42f96b2db87119efa0daeb614d0381dbac96 /arch/xtensa/Makefile
parentxtensa: ISS: don't allocate memory in platform_setup (diff)
downloadlinux-8e966fab8eeb45db9f5a570ac4521f684d9696e1.tar.xz
linux-8e966fab8eeb45db9f5a570ac4521f684d9696e1.zip
xtensa: remove unnecessary KBUILD_SRC ifeq conditional
You can always prefix variant/platform header search paths with $(srctree)/ because $(srctree) is '.' for in-tree building. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/Makefile')
-rw-r--r--arch/xtensa/Makefile4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile
index 295c120ed099..d67e30faff9c 100644
--- a/arch/xtensa/Makefile
+++ b/arch/xtensa/Makefile
@@ -64,11 +64,7 @@ endif
vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
-ifeq ($(KBUILD_SRC),)
-KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(vardirs) $(plfdirs))
-else
KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs))
-endif
KBUILD_DEFCONFIG := iss_defconfig