[PATCH] Makefile: Use relative paths for debugging symbols.

Tom Rini trini at konsulko.com
Fri Aug 26 22:59:00 CEST 2022


On Thu, Aug 18, 2022 at 10:31:34AM -0700, Vagrant Cascadian wrote:

> From: Vagrant Cascadian <vagrant at reproducible-builds.org>
> 
> 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/
> 
> Signed-off-by: Vagrant Cascadian <vagrant at reproducible-builds.org>
> Acked-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>

This needs some sort of clang check and then perhaps different flag
used? How does the linux kernel handle this? See:
https://source.denx.de/u-boot/u-boot/-/jobs/487013#L48

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220826/2ad72edd/attachment.sig>


More information about the U-Boot mailing list