bitbake.conf/sstate: Introduce OE_SHARED_UMASK to standarise shared area umask

Currently, the "shared" directory permissions of sstate are hardcoded. Since
multiple areas of the code reference this, separate it out to a variable to
allow the behaviour to be configurable. Initially this applies to SSTATE_DIR.

(From OE-Core rev: ce32daa9843bcb5f6daf3560c64ca9e5144adcb0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2025-06-27 10:25:00 +01:00
parent 99d0842f16
commit 6c8292de85
2 changed files with 9 additions and 5 deletions

View File

@@ -944,6 +944,8 @@ TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH').replace("_", "-")}"
# Set a default umask to use for tasks for determinism
BB_DEFAULT_UMASK ??= "022"
# The umask to use for shared files (e.g. DL_DIR and SSTATE_DIR)
OE_SHARED_UMASK ??= "002"
# Complete output from bitbake
BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log"