mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user