summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-25 20:28:22 +0300
committerAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-27 17:35:55 +0300
commit454364ccb8c14738f88b7b51c26258c548a17305 (patch)
treeffb8e69f4e011b5a245d372b1f8d1f1fe10fa187 /resources
parent0aeb69b5ad276f4ca466e8a9aff203f004e32bf7 (diff)
download/u-boot: Try to update submodules as in coreboot script
The coreboot download script tries to update submodules, since coreboot does use git submodules to retrieve and compile the projects it depends on. Although U-Boot doesn't use submodules, try to update them anyway to match the coreboot download script. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Diffstat (limited to 'resources')
-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()