summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2020-06-24 16:51:12 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-06-25 16:59:19 +0000
commitb9d0c0f7a335e14afd003816a4de9313734b556c (patch)
tree476b5583c46ae3455ecc9af99082fae5e63d39b4 /util
parentc4b2f8c5d83cba78db2e062f3e1d653e8af241c4 (diff)
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 <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42774 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/abuild/abuild3
1 files changed, 3 insertions, 0 deletions
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)}