]> www.infradead.org Git - users/willy/pagecache.git/commit
kbuild: make all file references relative to source root
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 15 Mar 2025 13:20:14 +0000 (14:20 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 16 Mar 2025 02:06:43 +0000 (11:06 +0900)
commit0d0cd71ba7879c28f7dbe867aa8e88aba4814580
tree35f1250e4e6fd2c8bf576c763a82576588db0fff
parentf4f14fb02ddef832c1cf339e8b65c7c1c50bbdc1
kbuild: make all file references relative to source root

-fmacro-prefix-map only affects __FILE__ and __BASE_FILE__.
Other references, for example in debug information, are not affected.
This makes handling of file references in the compiler outputs harder to
use and creates problems for reproducible builds.

Switch to -ffile-prefix map which affects all references.

Also drop the documentation section advising manual specification of
-fdebug-prefix-map for reproducible builds, as it is not necessary
anymore.

Suggested-by: Ben Hutchings <ben@decadent.org.uk>
Link: https://lore.kernel.org/lkml/c49cc967294f9a3a4a34f69b6a8727a6d3959ed8.camel@decadent.org.uk/
Acked-by: Borislav Petkov (AMD) <bp@alien8.de> # arch/x86/
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Documentation/kbuild/reproducible-builds.rst
Makefile
arch/x86/boot/Makefile
arch/x86/boot/compressed/Makefile