aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-13 23:56:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-16 09:48:37 +0100
commit13a039e03195a47c750d5901e96fe81cf523481f (patch)
tree7cff74cfdd705892cf0cbde5d689b76d4bb2486a /meta
parentc3b3cc4745811b48b9193f83889946b2e1788932 (diff)
downloadopenembedded-core-13a039e03195a47c750d5901e96fe81cf523481f.tar.gz
openembedded-core-13a039e03195a47c750d5901e96fe81cf523481f.tar.bz2
openembedded-core-13a039e03195a47c750d5901e96fe81cf523481f.zip
bash: Ensure deterministic build
Bash keeps a count of the number of times make was invoked on a directory and changes the output versioning accordingly. We want deterministic output so disable this behaviour. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/bash/bash.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index ca788e1672..18874a0e24 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -62,6 +62,11 @@ do_compile_ptest () {
oe_runmake buildtest
}
+do_install:prepend () {
+ # Ensure determinism as this counter increases for each make call
+ rm -f ${B}/.build
+}
+
do_install:append () {
# Move /usr/bin/bash to /bin/bash, if need
if [ "${base_bindir}" != "${bindir}" ]; then