
26 Aug
2022
26 Aug
'22
10:59 p.m.
On Thu, Aug 18, 2022 at 10:31:34AM -0700, Vagrant Cascadian wrote:
From: Vagrant Cascadian vagrant@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@reproducible-builds.org Acked-by: Rasmus Villemoes rasmus.villemoes@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