summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-25 20:26:44 +0300
committerAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-27 17:35:55 +0300
commit0aeb69b5ad276f4ca466e8a9aff203f004e32bf7 (patch)
tree173364616d11ba95400a48e90d2908f58ee21f61 /resources/scripts
parent7b552bd29992e423755e0306ea115f726854cbf0 (diff)
download/u-boot: Use GitHub mirror as fallback
The coreboot download script uses GitHub as a fallback if the upstream coreboot is unavailable, use a similar fallback for U-Boot as well. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/download/u-boot6
1 files changed, 6 insertions, 0 deletions
diff --git a/resources/scripts/download/u-boot b/resources/scripts/download/u-boot
index ecd35adc..4e5a77c0 100755
--- a/resources/scripts/download/u-boot
+++ b/resources/scripts/download/u-boot
@@ -125,6 +125,12 @@ downloadfor() {
"${uboot_dir}" || \
rm -Rf "${uboot_dir}"
if [ ! -d "${uboot_dir}" ]; then
+ printf "WARNING: Upstream failed. Trying backup github repository:\n"
+ git clone https://github.com/u-boot/u-boot.git \
+ "${uboot_dir}" || \
+ rm -Rf coreboot
+ fi
+ if [ ! -d "${uboot_dir}" ]; then
printf \
"ERROR: %s: Problem with git-clone. Network issue?\n" \
"download/u-boot"