Skip to content

Commit 0afd73c

Browse files
committed
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 <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
1 parent bcbbf49 commit 0afd73c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ else # need-sub-make
228228

229229
# We process the rest of the Makefile if this is the final invocation of make
230230

231-
ifeq ($(abs_srctree),$(abs_objtree))
231+
ifeq ($(abs_srctree),$(CURDIR))
232232
# building in the source tree
233233
srctree := .
234234
building_out_of_srctree :=
235235
else
236-
ifeq ($(abs_srctree)/,$(dir $(abs_objtree)))
236+
ifeq ($(abs_srctree)/,$(dir $(CURDIR)))
237237
# building in a subdirectory of the source tree
238238
srctree := ..
239239
else

0 commit comments

Comments
 (0)