From: Masahiro Yamada Date: Sun, 10 Nov 2024 01:34:29 +0000 (+0900) Subject: kbuild: replace two $(abs_objtree) with $(CURDIR) in top Makefile X-Git-Tag: v6.13-rc1~16^2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0afd73c5f5c606b0f8f8ff036e4f5d6c4b788d02;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Nicolas Schier --- diff --git a/Makefile b/Makefile index 8dceb6830486d..891d28e54791b 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