Skip to content

Commit 822b11a

Browse files
committed
kbuild: use absolute path in the generated wrapper Makefile
Keep the consistent behavior when this Makefile is invoked from another directory. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
1 parent 1d3730f commit 822b11a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,9 @@ ifdef building_out_of_srctree
644644

645645
quiet_cmd_makefile = GEN Makefile
646646
cmd_makefile = { \
647-
echo "\# Automatically generated by $(srctree)/Makefile: don't edit"; \
648-
echo "include $(srctree)/Makefile"; \
647+
echo "\# Automatically generated by $(abs_srctree)/Makefile: don't edit"; \
648+
echo "export KBUILD_OUTPUT = $(CURDIR)"; \
649+
echo "include $(abs_srctree)/Makefile"; \
649650
} > Makefile
650651

651652
outputmakefile:

0 commit comments

Comments
 (0)