setup_board: disable ebuild-locks for dev builds

This cuts image build time in half and also has a positive effect on package
installation.
This commit is contained in:
Jeremi Piotrowski 2022-02-17 11:17:57 +01:00
parent 173554db7a
commit bdcf7069d9

View File

@ -272,6 +272,9 @@ EMERGE_DEFAULT_OPTS="--oneshot"
# Allow the user to override or define additional settings.
source "${BOARD_ETC}/portage/make.conf.user"
EOF
if [[ "${COREOS_OFFICIAL:-0}" -ne 1 ]]; then
echo "FEATURES=-ebuild-locks" | sudo_append "${BOARD_ETC}/portage/make.conf"
fi
# required when using --regen_configs_only
sudo mkdir -p --mode=01777 "${BOARD_ROOT}"{/tmp,/var/tmp}