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>
This commit is contained in:
Alper Nebi Yasak 2022-08-27 15:11:19 +03:00 committed by Denis 'GNUtoo' Carikli
parent 7b85332fe3
commit 03c3e10ec7
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
1 changed files with 10 additions and 0 deletions

View File

@ -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