]> code.ossystems Code Review - openembedded-core.git/commit
native/cross: Add ar wrapper for determinism
authorJacob Kroon <jacob.kroon@gmail.com>
Wed, 24 Nov 2021 05:31:10 +0000 (06:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Nov 2021 16:58:55 +0000 (16:58 +0000)
commit59922c95fcb20c66634c5677012d490be2246b0b
tree2049240fb1846bea95cfc6458bff438d8e142891
parente0010af733825ed1050fd3342cf3ef1c478df1a0
native/cross: Add ar wrapper for determinism

Add a wrapper around ar calls for native/cross recipes. This wrapper adds
the -D option so that deterministic archives are built for native/cross
output. This improves the changes of hash equivalence matches and hence
build artefact reuse.

We don't need this in the target case since we compile binutils-cross
with an option making this the default. We need a wrapper since we need
to remove the "u" option and replace it with "D" but also allow things like
"--version" to continue to work too.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cross.bbclass
scripts/cross-intercept/ar [new symlink]
scripts/native-intercept/ar [new file with mode: 0755]