diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2022-08-26 14:20:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-12 08:41:47 +0100 |
commit | bdc6dfc12fc11ba4af84afe5134f068ea099f233 (patch) | |
tree | cbcff4efdb822923b2c1a427ac9a7877864a2f97 /meta/conf | |
parent | 2723b8dae83b78ecca6f71d76cabf6107f1581ca (diff) | |
download | poky-bdc6dfc12fc11ba4af84afe5134f068ea099f233.tar.gz |
bitbake.conf: set BB_DEFAULT_UMASK using ??=
Currently, there's no way for the user's site.conf, local.conf or
similar to set BB_DEFAULT_UMASK, because those files are included by
bitbake.conf prior to the unconditional assignment of
BB_DEFAULT_UMASK. To make that possible, use a weak default assignment
instead. This is also consistent with most other variable assignments
in the lower half of bitbake.conf.
I believe the risk of a regression is very small; it would require
something like somebody having a definition of BB_DEFAULT_UMASK in a
local configuration file, and having been relying on that _not_ taking
effect.
(From OE-Core rev: 4d603ccf0713ade69d98e452b991a4d1d71c144a)
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
(cherry picked from commit e3dbded499f0bd1e71abb0650ae98fd9ade94250)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 2a3cf6f8aa..516a30c963 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -924,7 +924,7 @@ SHELL[unexport] = "1" | |||
924 | TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH').replace("_", "-")}" | 924 | TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH').replace("_", "-")}" |
925 | 925 | ||
926 | # Set a default umask to use for tasks for determinism | 926 | # Set a default umask to use for tasks for determinism |
927 | BB_DEFAULT_UMASK = "022" | 927 | BB_DEFAULT_UMASK ??= "022" |
928 | 928 | ||
929 | # Complete output from bitbake | 929 | # Complete output from bitbake |
930 | BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log" | 930 | BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log" |