diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-13 23:56:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-30 00:02:22 +0100 |
commit | dbdb61464213f2902052c1ee3ac3b346f970c531 (patch) | |
tree | df21c4103e09c59b3f0dc02e862d6a30e79e5a4b /meta/recipes-extended | |
parent | 065ca6b7b04d6153e8d53aeda0e93a488e3c81e9 (diff) | |
download | poky-dbdb61464213f2902052c1ee3ac3b346f970c531.tar.gz |
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.
(From OE-Core rev: 8ca4fad65d267c178a416546486c8422001115b0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 13a039e03195a47c750d5901e96fe81cf523481f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/bash/bash.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc index c7cf8cddd3..4e6176d2e6 100644 --- a/meta/recipes-extended/bash/bash.inc +++ b/meta/recipes-extended/bash/bash.inc | |||
@@ -49,6 +49,11 @@ do_compile_ptest () { | |||
49 | oe_runmake buildtest | 49 | oe_runmake buildtest |
50 | } | 50 | } |
51 | 51 | ||
52 | do_install_prepend () { | ||
53 | # Ensure determinism as this counter increases for each make call | ||
54 | rm -f ${B}/.build | ||
55 | } | ||
56 | |||
52 | do_install_append () { | 57 | do_install_append () { |
53 | # Move /usr/bin/bash to /bin/bash, if need | 58 | # Move /usr/bin/bash to /bin/bash, if need |
54 | if [ "${base_bindir}" != "${bindir}" ]; then | 59 | if [ "${base_bindir}" != "${bindir}" ]; then |