summaryrefslogtreecommitdiff
path: root/resources/scripts/download
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2022-12-11 05:30:23 +0000
committerGogs <gogitservice@gmail.com>2022-12-11 05:30:23 +0000
commit34a56281ac08f61a610149325ac40346de28daed (patch)
treea7798262853f23303119f86fbdea50e474cce74a /resources/scripts/download
parentb495aa0987a09714f94e0e035beeb216cbd5f67c (diff)
parentf079b83dd9c0953958fe5d84d0594d39b02122fe (diff)
Merge branch 'cros-postmerge-fixes' of alpernebbi/lbmk into master
Diffstat (limited to 'resources/scripts/download')
-rwxr-xr-xresources/scripts/download/u-boot14
1 files changed, 4 insertions, 10 deletions
diff --git a/resources/scripts/download/u-boot b/resources/scripts/download/u-boot
index 5b6a160e..1af513a4 100755
--- a/resources/scripts/download/u-boot
+++ b/resources/scripts/download/u-boot
@@ -181,7 +181,7 @@ downloadfor() {
# extra.sh on a per-board basis
# In fact, extra.sh can be used for anything you want.
if [ -f "resources/u-boot/${board}/extra.sh" ]; then
- "resources/u-boot/${board}/extra.sh" || touch build_error
+ ( cd "${ubtree}" && "../../resources/u-boot/${board}/extra.sh"; ) || touch build_error
if [ -f build_error ]; then
return 1
fi
@@ -207,6 +207,9 @@ usage()
progname="./download u-boot"
printf "Usage:\n"
+ printf "\t%s # %s\n" \
+ "${progname}" \
+ "Download u-boot for all boards"
printf "\t%s [board] # %s\n" \
"${progname}" \
"Download u-boot for the given board"
@@ -235,11 +238,6 @@ if [ $# -eq 0 ] ; then
for board in $(list_supported_boards); do
download_uboot_board "${board}"
done
-
- if [ "${deletegit}" = "true" ]; then
- rm -rf u-boot/u-boot/ u-boot/.git*
- fi
-
exit 0
elif [ $# -eq 1 -a "$1" == "--help" ] ; then
usage
@@ -255,10 +253,6 @@ elif [ $# -eq 1 ] ; then
fi
done
- if [ "${deletegit}" = "true" ]; then
- rm -rf u-boot/u-boot/ u-boot/.git*
- fi
-
printf "Error: Board '${1}' is not supported\n"
exit 1