summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rwxr-xr-xresources/scripts/download/u-boot10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/scripts/download/u-boot b/resources/scripts/download/u-boot
index 025ff66e..b1a42b58 100755
--- a/resources/scripts/download/u-boot
+++ b/resources/scripts/download/u-boot
@@ -305,6 +305,7 @@ download_uboot_board()
printf "\n\n"
if [ "${deleteblobs}" = "true" ]; then
+ rm -rf "${ubtree}"/.git* "${ubtree}"/*/.git*
blobslist="$(print_blobs_list_path "${board}")"
for blob_path in $(strip_comments "${blobslist}"); do
if echo "${blob_path}" | \
@@ -345,6 +346,11 @@ if [ $# -eq 0 ] ; then
for board in $(list_supported_boards); do
download_uboot_board "${board}"
done
+
+ if [ "${deleteblobs}" = "true" ]; then
+ rm -rf u-boot/u-boot/ u-boot/.git*
+ fi
+
exit 0
elif [ $# -eq 1 -a "$1" == "--help" ] ; then
usage
@@ -390,6 +396,10 @@ elif [ $# -eq 1 ] ; then
fi
done
+ if [ "${deleteblobs}" = "true" ]; then
+ rm -rf u-boot/u-boot/ u-boot/.git*
+ fi
+
printf "Error: Board '${1}' is not supported\n"
exit 1