summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xresources/scripts/download/u-boot7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/scripts/download/u-boot b/resources/scripts/download/u-boot
index 4e5a77c0..86be55b9 100755
--- a/resources/scripts/download/u-boot
+++ b/resources/scripts/download/u-boot
@@ -162,6 +162,13 @@ downloadfor() {
"download/u-boot" "${ubrevision}" "${board}" "${ubtree}"
return 1
fi
+
+ git -C "${ubtree}" submodule update --init || touch build_error
+ if [ -f build_error ]; then
+ printf "ERROR: %s: Unable to update submodules for tree '%s'\n" \
+ "${ubtree}"
+ return 1
+ fi
}
strip_comments()