Message ID | 1536726319-9645-1-git-send-email-yamada.masahiro@socionext.com |
---|---|
State | Accepted |
Commit | 8e966fab8eeb45db9f5a570ac4521f684d9696e1 |
Headers | show |
Series | xtensa: remove unnecessary KBUILD_SRC ifeq conditional | expand |
On Tue, Sep 11, 2018 at 9:25 PM, Masahiro Yamada <yamada.masahiro@socionext.com> wrote: > 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> > --- > > arch/xtensa/Makefile | 4 ---- > 1 file changed, 4 deletions(-) Thanks, applied to my xtensa tree. -- Thanks. -- Max
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 295c120..d67e30fa 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
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> --- arch/xtensa/Makefile | 4 ---- 1 file changed, 4 deletions(-) -- 2.7.4