[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>
Fri, 19 Apr 2024 18:32:03 +0000 (11:32 -0700)
commitc903ec43bb6c27be215aaa3052e4a1f149e23a11
tree226889e11fd369dce4b72a149793e5c13cef8dec
parentcf58a796dcae73fdc3f40e1b59df6a0086c7bda4
[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