OSDN Git Service

xtensa: remove unnecessary KBUILD_SRC ifeq conditional
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 12 Sep 2018 04:25:19 +0000 (13:25 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 12 Sep 2018 05:09:48 +0000 (22:09 -0700)
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>
arch/xtensa/Makefile

index 295c120..d67e30f 100644 (file)
@@ -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