kbuild: add --include-dir flag only for out-of-tree build
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 14 Sep 2018 06:33:23 +0000 (15:33 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 4 Oct 2018 13:56:01 +0000 (22:56 +0900)
commit80463f1b7bf9f822fd3495139bcf3ef254fdca10
tree8cdacffa9330a8026f9f9a6013096cd9f01107a4
parent00d78ab2ba756af7b9a4dacd437b7a882bd18a4b
kbuild: add --include-dir flag only for out-of-tree build

The --include-dir flag is used to include check-in Makefiles from
$(objtree) without $(srctree)/ prefix.  Obviously, this is unneeded
for in-tree build.  Add the flag just before changing the working
directory.

This becomes effective after invoking sub-make.  Add a little bit
comments about it.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile