linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xtensa: remove unnecessary KBUILD_SRC ifeq conditional
@ 2018-09-12  4:25 Masahiro Yamada
  2018-09-12  5:12 ` Max Filippov
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2018-09-12  4:25 UTC (permalink / raw)
  To: Chris Zankel, Max Filippov, linux-xtensa; +Cc: Masahiro Yamada, linux-kernel

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(-)

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
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] xtensa: remove unnecessary KBUILD_SRC ifeq conditional
  2018-09-12  4:25 [PATCH] xtensa: remove unnecessary KBUILD_SRC ifeq conditional Masahiro Yamada
@ 2018-09-12  5:12 ` Max Filippov
  0 siblings, 0 replies; 2+ messages in thread
From: Max Filippov @ 2018-09-12  5:12 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Chris Zankel, linux-xtensa, LKML

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-12  5:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-12  4:25 [PATCH] xtensa: remove unnecessary KBUILD_SRC ifeq conditional Masahiro Yamada
2018-09-12  5:12 ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).