diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2022-08-26 14:20:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-30 10:33:35 +0100 |
commit | 52ef5711dcd189d8f45555490aabf2c6958df6ed (patch) | |
tree | 3a7315a258781c40b19b8cdc8ea571ff93a4e045 /meta/conf/bitbake.conf | |
parent | b217f50dc5bea940a3e227ece215482953fd250b (diff) | |
download | poky-52ef5711dcd189d8f45555490aabf2c6958df6ed.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: e3dbded499f0bd1e71abb0650ae98fd9ade94250)
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.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 dd2df8a552..52a36d788b 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -928,7 +928,7 @@ SHELL[unexport] = "1" | |||
928 | TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH').replace("_", "-")}" | 928 | TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH').replace("_", "-")}" |
929 | 929 | ||
930 | # Set a default umask to use for tasks for determinism | 930 | # Set a default umask to use for tasks for determinism |
931 | BB_DEFAULT_UMASK = "022" | 931 | BB_DEFAULT_UMASK ??= "022" |
932 | 932 | ||
933 | # Complete output from bitbake | 933 | # Complete output from bitbake |
934 | BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log" | 934 | BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log" |