summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-14 11:42:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-16 11:28:16 +0000
commitc4ecf7c1122380cdbc74fe692aa91756dc5bdf6b (patch)
tree38e2325f38833ce62a2209f8e1596796143590ae
parent707b62f130ae845ca7a6c21b31ad90b89681d863 (diff)
downloadpoky-c4ecf7c1122380cdbc74fe692aa91756dc5bdf6b.tar.gz
poky-c4ecf7c1122380cdbc74fe692aa91756dc5bdf6b.tar.bz2
poky-c4ecf7c1122380cdbc74fe692aa91756dc5bdf6b.zip
bitbake.conf: Set as default task umask of 022
Rather than trying to set the umask of every task to the correct value for determinism, set one value globally. This uses a new bitbake variable so bump the minimum version to match. This fixes strange determinism issues in at least quilt-ptest, valgrind-ptest and kernel-devsrc. (From OE-Core rev: b07b7deeae3d519d9998d583592f3e4f8f2802b3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/bitbake.conf3
-rw-r--r--meta/conf/sanity.conf2
2 files changed, 4 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 3438be92b7..375467d155 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -868,6 +868,9 @@ SHELL[unexport] = "1"
# Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH').replace("_", "-")}"
+# Set a default umask to use for tasks for determinism
+BB_DEFAULT_UMASK = "022"
+
# Complete output from bitbake
BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log"
diff --git a/meta/conf/sanity.conf b/meta/conf/sanity.conf
index 9582edd3af..ef7cee6b6b 100644
--- a/meta/conf/sanity.conf
+++ b/meta/conf/sanity.conf
@@ -3,7 +3,7 @@
# See sanity.bbclass
#
# Expert users can confirm their sanity with "touch conf/sanity.conf"
-BB_MIN_VERSION = "1.49.1"
+BB_MIN_VERSION = "1.49.2"
SANITY_ABIFILE = "${TMPDIR}/abi_version"