diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-13 23:56:49 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-02 09:53:15 +0100 |
| commit | 09ba020015468f75c64cecc4b75e2bcf74978802 (patch) | |
| tree | 17bc360d3d406570a4b97bfdddaa4cefc34a2de1 | |
| parent | 47187738b16ed368d33c61f493e1d21b0fc0d06a (diff) | |
| download | poky-09ba020015468f75c64cecc4b75e2bcf74978802.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: 97d6a8452779fe511a354a70a72dd338f52a92cb)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 13a039e03195a47c750d5901e96fe81cf523481f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -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 d3e1dfdb30..37871bcdca 100644 --- a/meta/recipes-extended/bash/bash.inc +++ b/meta/recipes-extended/bash/bash.inc | |||
| @@ -62,6 +62,11 @@ do_compile_ptest () { | |||
| 62 | oe_runmake buildtest | 62 | oe_runmake buildtest |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | do_install_prepend () { | ||
| 66 | # Ensure determinism as this counter increases for each make call | ||
| 67 | rm -f ${B}/.build | ||
| 68 | } | ||
| 69 | |||
| 65 | do_install_append () { | 70 | do_install_append () { |
| 66 | # Move /usr/bin/bash to /bin/bash, if need | 71 | # Move /usr/bin/bash to /bin/bash, if need |
| 67 | if [ "${base_bindir}" != "${bindir}" ]; then | 72 | if [ "${base_bindir}" != "${bindir}" ]; then |
