summaryrefslogtreecommitdiff
path: root/resources/scripts/download/u-boot
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/download/u-boot')
-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