diff options
author | Jacob Kroon <jacob.kroon@gmail.com> | 2021-11-24 06:31:10 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-26 17:01:08 +0000 |
commit | 096c9037bc8376c162ca364e23cc23d92d4c04f8 (patch) | |
tree | 7992a93e776cc2c8a16c3b92261e7c6433a6cc80 /meta/classes/cross.bbclass | |
parent | 921d3aa667ce7df03012d9ecbb62fb91f60ebf07 (diff) | |
download | poky-096c9037bc8376c162ca364e23cc23d92d4c04f8.tar.gz |
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.
(From OE-Core rev: 59922c95fcb20c66634c5677012d490be2246b0b)
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cross.bbclass')
-rw-r--r-- | meta/classes/cross.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 3e6a2f60b9..9d951076a7 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass | |||
@@ -93,3 +93,5 @@ python do_addto_recipe_sysroot () { | |||
93 | } | 93 | } |
94 | addtask addto_recipe_sysroot after do_populate_sysroot | 94 | addtask addto_recipe_sysroot after do_populate_sysroot |
95 | do_addto_recipe_sysroot[deptask] = "do_populate_sysroot" | 95 | do_addto_recipe_sysroot[deptask] = "do_populate_sysroot" |
96 | |||
97 | PATH:prepend = "${COREBASE}/scripts/cross-intercept:" | ||