From 270272eb61083f0bfa3d3899fe1dc62718123028 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Sat, 27 Aug 2022 15:11:19 +0300 Subject: 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 --- resources/scripts/download/u-boot | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'resources/scripts') 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 -- cgit v1.2.1