summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-27 15:11:19 +0300
committerAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-27 17:35:55 +0300
commit270272eb61083f0bfa3d3899fe1dc62718123028 (patch)
tree63035855869f66612f101f7275a1cb4e6f57ae12 /resources/scripts
parent820b8e706eb42b8f7138c16bc17cf6b6eba26a09 (diff)
download/u-boot: Remove .git folders as well
The coreboot download removes .git folders as they still contain the removed blobs, remove those in the U-Boot version as well. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Diffstat (limited to 'resources/scripts')
-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