From b9d0c0f7a335e14afd003816a4de9313734b556c Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 24 Jun 2020 16:51:12 +0200 Subject: util/abuild: Only update submodules once Without this, each build will try to update the submodules. Not necessarily a problem but git locks repos, creating spurious error messages. Change-Id: Iba20677d4b5f9365c92f7ed247ca56acb7d33b27 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/42774 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- util/abuild/abuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/abuild/abuild b/util/abuild/abuild index 022567da59..6e14765cca 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -796,8 +796,11 @@ if [ "$cpus" != "1" ]; then echo | xargs -P ${cpus:-0} -n 1 echo 2>/dev/null >/dev/null && USE_XARGS=1 fi +git submodule update --checkout --init + if [ "$USE_XARGS" = "0" ]; then test "$MAKEFLAGS" == "" && test "$cpus" != "" && export MAKEFLAGS="-j $cpus" +export MAKEFLAGS="$MAKEFLAGS UPDATED_SUBMODULES=1" # no need to re-download build_targets() { local targets=${*-$(get_mainboards)} -- cgit v1.2.3