[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, 10 Jan 2023 03:18:09 +0000 (03:18 +0000)
commit2985349a888dcf618256cef1e4fae47c437f8dfa
tree6c08006868c868826ca8f8def3b2474c06e10ad4
parent709ff0f5a57aaef87370f9e7720509d4f06cd0ad
[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