]> code.ossystems Code Review - openembedded-core.git/commit
ovmf: Improve reproducibility by enabling prefix mapping
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 May 2021 15:53:07 +0000 (16:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 May 2021 10:53:23 +0000 (11:53 +0100)
commit51f51310d6d5cced2b55bf27dbb9a5717740a206
tree569081b908be07d84fbc97e3bcd12a6ddc68d8b0
parent3670be602f2ace24dc49e196407efec577164050
ovmf: Improve reproducibility by enabling prefix mapping

We want to pass ${DEBUG_PREFIX_MAP} to gcc commands and also pass in
--debug-prefix-map to nasm (we carry a patch to nasm for this). The
tools definitions are built by ovmf-native so we need to pass this in
at target build time when we know the right values.

By using determininistc file paths in the ovmf build, it removes the
opportunitity for gcc/ld to change the output binaries due to path
lengths overflowing section sizes and causing small changes in the
binary output.

This also means that if builds have reproducibility issues in future, it
becomes much easier to compare intermediate build artefacts.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/ovmf/ovmf/debug_prefix_map.patch [new file with mode: 0644]
meta/recipes-core/ovmf/ovmf_git.bb