From a0d4477bc223682e71f07def6cbdd6fce983c82b Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 28 Aug 2020 11:15:44 +0100 Subject: [PATCH] arm/trusted-firmware-a: don't build all targets in parallel 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 Signed-off-by: Jon Mason --- .../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 c14e1e51..91c76bdf 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 @@ -105,7 +105,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}"