Skip to content

Commit

Permalink
kbuild: use absolute path in the generated wrapper Makefile
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
masahir0y committed Nov 27, 2024
1 parent 1d3730f commit 822b11a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,9 @@ ifdef building_out_of_srctree

quiet_cmd_makefile = GEN Makefile
cmd_makefile = { \
echo "\# Automatically generated by $(srctree)/Makefile: don't edit"; \
echo "include $(srctree)/Makefile"; \
echo "\# Automatically generated by $(abs_srctree)/Makefile: don't edit"; \
echo "export KBUILD_OUTPUT = $(CURDIR)"; \
echo "include $(abs_srctree)/Makefile"; \
} > Makefile

outputmakefile:
Expand Down

0 comments on commit 822b11a

Please sign in to comment.