kbuild: replace KBUILD_SRCTREE with boolean building_out_of_srctree
Commit 25b146c5 ("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>
Showing
- Makefile 8 additions, 11 deletionsMakefile
- scripts/Makefile.build 1 addition, 1 deletionscripts/Makefile.build
- scripts/Makefile.host 1 addition, 1 deletionscripts/Makefile.host
- scripts/Makefile.lib 1 addition, 1 deletionscripts/Makefile.lib
- scripts/Makefile.modbuiltin 1 addition, 1 deletionscripts/Makefile.modbuiltin
- scripts/gdb/linux/Makefile 1 addition, 1 deletionscripts/gdb/linux/Makefile
- tools/testing/selftests/Makefile 1 addition, 1 deletiontools/testing/selftests/Makefile
- tools/testing/selftests/lib.mk 2 additions, 2 deletionstools/testing/selftests/lib.mk
Loading
Please register or sign in to comment