kbuild: replace KBUILD_SRCTREE with boolean building_out_of_srctree
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 6 Jul 2019 03:07:12 +0000 (12:07 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 10 Jul 2019 15:05:09 +0000 (00:05 +0900)
commit051f278e9d81bed253bf89c66c80b8b921aafa8a
tree188b90e6cd434ca30972e6166bfbc88e273d9474
parent75dd47472b92c320304436c9e38638bc04ae7a4a
kbuild: replace KBUILD_SRCTREE with boolean building_out_of_srctree

Commit 25b146c5b8ce ("kbuild: allow Kbuild to start from any directory")
deprecated KBUILD_SRCTREE.

It is only used in tools/testing/selftest/ to distinguish out-of-tree
build. Replace it with a new boolean flag, building_out_of_srctree.

I also replaced the conditional ($(srctree),.) because the next commit
will allow an absolute path to be used for $(srctree) even when building
in the source tree.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile
scripts/Makefile.build
scripts/Makefile.host
scripts/Makefile.lib
scripts/Makefile.modbuiltin
scripts/gdb/linux/Makefile
tools/testing/selftests/Makefile
tools/testing/selftests/lib.mk