Revert "kbuild: make all file references relative to source root"
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 11 May 2025 06:02:27 +0000 (08:02 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 12 May 2025 06:04:13 +0000 (15:04 +0900)
commit020d7f14489b8bc38c6bd4c5b3c25262e8b6de63
treedcf5125fe66b50469cf4da357847cdd69dd66504
parentf0e4b333cf67b3d5da56bd01a125f45c102f7d27
Revert "kbuild: make all file references relative to source root"

This reverts commit cacd22ce69585a91c386243cd662ada962431e63.

-ffile-prefix-map breaks the ability of debuggers to find the source
file corresponding to object files. As there is no simple or uniform
way to specify the source directory explicitly, this breaks developers
workflows.

Revert the unconditional usage of -ffile-prefix-map.

Reported-by: Matthieu Baerts <matttbe@kernel.org>
Closes: https://lore.kernel.org/lkml/edc50aa7-0740-4942-8c15-96f12f2acc7e@kernel.org/
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Closes: https://lore.kernel.org/lkml/aBEttQH4kimHFScx@intel.com/
Fixes: cacd22ce6958 ("kbuild: make all file references relative to source root")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Documentation/kbuild/reproducible-builds.rst
Makefile