From: Masahiro Yamada Date: Sun, 10 Nov 2024 01:34:37 +0000 (+0900) Subject: kbuild: use absolute path in the generated wrapper Makefile X-Git-Tag: v6.13-rc1~16^2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=822b11a74ba2bc79ddd4165d55e988514c053d71;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Nicolas Schier --- diff --git a/Makefile b/Makefile index a4ac0133f7cde..446acb6ba967c 100644 --- a/Makefile +++ b/Makefile @@ -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: