aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-13 23:56:49 +0100
committerAnuj Mittal <anuj.mittal@intel.com>2021-09-27 17:13:15 +0800
commit206dcd3c9d112fafc374a936d88e3e73bf489b18 (patch)
tree4dd13fdfb44539b20ef6c29920d103c4ae6aeb93
parent081aa452eaa5ee5cee85c2ba80136c7d07df3dcd (diff)
downloadopenembedded-core-contrib-anujm/hardknott.tar.gz
openembedded-core-contrib-anujm/hardknott.tar.bz2
openembedded-core-contrib-anujm/hardknott.zip
bash: Ensure deterministic buildanujm/hardknott
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> (cherry picked from commit 13a039e03195a47c750d5901e96fe81cf523481f) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-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 d3e1dfdb30..37871bcdca 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