[PATCH] Makefile: Use relative paths for debugging symbols.
authorVagrant Cascadian <vagrant@reproducible-builds.org>
Wed, 17 Aug 2022 02:00:04 +0000 (19:00 -0700)
committerVagrant Cascadian <vagrant@debian.org>
Tue, 11 Jul 2023 02:54:17 +0000 (03:54 +0100)
commit6388ba26b7c6d37a724661c85df9f73b4081e3f8
tree1a06f313e8e00f9daeee9fd5d25ac31dedc04f4e
parent52edf00bc36eb896538d7d6e9b69b6b4cedcdf65
[PATCH] Makefile: Use relative paths for debugging symbols.

The KBUILD_CFLAGS and KBUILD_AFLAGS variables are adjusted to use
-ffile-prefix-map and --debug-prefix-map, respectively, to use
relative paths for occurrences of __FILE__ and debug paths.

This enables reproducible builds regardless of the absolute path to
the build directory:

  https://reproducible-builds.org/docs/build-path/

Series-to: u-boot
Signed-off-by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Gbp-Pq: Name Makefile-Use-relative-paths-for-debugging-symbols.patch
Makefile