summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-11-10 02:34:29 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2024-11-27 01:38:27 +0100
commit0afd73c5f5c606b0f8f8ff036e4f5d6c4b788d02 (patch)
tree37e42a1d6371b72c40d608ae35ab73ab9df25724 /Makefile
parentkbuild: deb-pkg: Don't fail if modules.order is missing (diff)
downloadlinux-0afd73c5f5c606b0f8f8ff036e4f5d6c4b788d02.tar.xz
linux-0afd73c5f5c606b0f8f8ff036e4f5d6c4b788d02.zip
kbuild: replace two $(abs_objtree) with $(CURDIR) in top Makefile
Kbuild changes the working directory until it matches $(abs_objtree). When $(need-sub-make) is empty, $(abs_objtree) is the same as $(CURDIR). Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <n.schier@avm.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8dceb6830486..891d28e54791 100644
--- a/Makefile
+++ b/Makefile
@@ -228,12 +228,12 @@ else # need-sub-make
# We process the rest of the Makefile if this is the final invocation of make
-ifeq ($(abs_srctree),$(abs_objtree))
+ifeq ($(abs_srctree),$(CURDIR))
# building in the source tree
srctree := .
building_out_of_srctree :=
else
- ifeq ($(abs_srctree)/,$(dir $(abs_objtree)))
+ ifeq ($(abs_srctree)/,$(dir $(CURDIR)))
# building in a subdirectory of the source tree
srctree := ..
else