From 1da42dca40211c4c22edf2c83b7bed45b0f7897c Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 16 Sep 2021 09:06:55 +0300 Subject: Coin: limit maximum number of bitbake tasks For Coin builds, ask for 16 core build machine (which is default already), but limit the maximum number of bitbake tasks to 8. This is attempting to avoid OOM which can occur when several Qt modules start to build in parallel after dependency to qtdeclarative is satisfied. Change-Id: I3dd6ed96a65ca73e3aae06fd93578a6e2aa8ac0a Reviewed-by: Mikko Gronoff (cherry picked from commit 3f55e556b241f2e108d0a8efbd53a86ab5b085fb) Reviewed-by: Qt Cherry-pick Bot --- coin/module_config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/coin/module_config.yaml b/coin/module_config.yaml index 93ce05da..c090d39a 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -9,6 +9,10 @@ accept_configuration: property: target.arch in_values: [TARGET1, TARGET2, TARGET3, TARGET4, TARGET5] +machine_type: + Build: + cores: 16 + environment: &environment type: Group instructions: @@ -81,6 +85,7 @@ build_instructions: source ./setup-environment.sh build export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SSTATE_DIR DL_DIR" export SSTATE_DIR=/mnt/yocto-cache/sstate-caches/$(sed -n -e "s/DISTRO_CODENAME.*\"\(.*\)\"/\1/p" ../sources/poky/meta-*/conf/distro/poky.conf) + export BB_NUMBER_THREADS=8 bitbake meta-b2qt-embedded-qbsp SDKMACHINE=x86_64-mingw32 bitbake meta-b2qt-embedded-qbsp -- cgit v1.2.3