diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-06 12:07:12 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-11 00:05:09 +0900 |
commit | 051f278e9d81bed253bf89c66c80b8b921aafa8a (patch) | |
tree | 188b90e6cd434ca30972e6166bfbc88e273d9474 /scripts/Makefile.build | |
parent | 75dd47472b92c320304436c9e38638bc04ae7a4a (diff) | |
download | linux-051f278e9d81bed253bf89c66c80b8b921aafa8a.tar.gz linux-051f278e9d81bed253bf89c66c80b8b921aafa8a.tar.bz2 linux-051f278e9d81bed253bf89c66c80b8b921aafa8a.zip |
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>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 776842b7e6a3..be38198d98b2 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -513,7 +513,7 @@ existing-targets := $(wildcard $(sort $(targets))) -include $(foreach f,$(existing-targets),$(dir $(f)).$(notdir $(f)).cmd) -ifneq ($(srctree),.) +ifdef building_out_of_srctree # Create directories for object files if they do not exist obj-dirs := $(sort $(obj) $(patsubst %/,%, $(dir $(targets)))) # If targets exist, their directories apparently exist. Skip mkdir. |