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>
This commit is contained in:
Richard Purdie 2021-09-13 23:56:49 +01:00
parent 6c5a29035b
commit 0256b7dac4

View File

@ -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