From patchwork Fri Aug 28 10:15:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [meta-arm, 3/4] arm/trusted-firmware-a: don't build all targets in parallel From: Ross Burton X-Patchwork-Id: 175770 Message-Id: <20200828101545.1291491-3-ross.burton@arm.com> To: meta-arm@lists.yoctoproject.org Date: Fri, 28 Aug 2020 11:15:44 +0100 From: Ross Burton There are build races in the Makefiles when you build all targets at once (missing dependencies): | tools/fiptool/fiptool create [...] | ERROR: fopen WORKDIR/build/juno/debug/fdts/juno_fw_config.dtb: No such file or directory These are non-trivial to fix so whilst upstream works on this we can just build each target serially. Change-Id: Iba0d0ae7de6faf199efea073135fd3b7232b81a1 Signed-off-by: Ross Burton --- .../recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc b/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc index 7845dac..8b19d68 100644 --- a/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc +++ b/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc @@ -122,7 +122,10 @@ do_compile() { sed -i '/^INCLUDE_PATHS/ s,$, \$\{BUILD_CFLAGS},' ${S}/tools/fiptool/Makefile sed -i 's^OPENSSL_DIR.*=.*$^OPENSSL_DIR = ${STAGING_DIR_NATIVE}/${prefix_native}^' ${S}/tools/*/Makefile - oe_runmake ${TFA_BUILD_TARGET} + # Currently there are races if you build all the targets at once in parallel + for T in ${TFA_BUILD_TARGET}; do + oe_runmake $T + done } do_compile[cleandirs] = "${B}"