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-16 09:50:34 +0100 |
| commit | 0256b7dac4ee357c4064c728561d0494d8beb93d (patch) | |
| tree | f1bee41e285f212ee99e56031a6ee325cb3492ee | |
| parent | 6c5a29035b11a80270ff6e522ae3530a1aaa13e2 (diff) | |
| download | poky-0256b7dac4ee357c4064c728561d0494d8beb93d.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: 13a039e03195a47c750d5901e96fe81cf523481f)
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 ca788e1672..18874a0e24 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 |
