From ff1d606be669b045e74bf472224dbdaf1273e6ac Mon Sep 17 00:00:00 2001 From: Jonathon Hall Date: Wed, 10 Jan 2024 13:24:34 -0500 Subject: [PATCH] bin/fetch_coreboot_crossgcc_archive.sh: ln -s again if link exists Changes in things like modules/coreboot will check the coreboot toolchain archives again. We reuse the cached archive already, but the final ln -s may fail if the link already exists. Remove it first and link again. Signed-off-by: Jonathon Hall --- bin/fetch_coreboot_crossgcc_archive.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/fetch_coreboot_crossgcc_archive.sh b/bin/fetch_coreboot_crossgcc_archive.sh index aa7820c6..58ba0c46 100755 --- a/bin/fetch_coreboot_crossgcc_archive.sh +++ b/bin/fetch_coreboot_crossgcc_archive.sh @@ -128,5 +128,6 @@ BIN_DIR="$(dirname "${BASH_SOURCE[0]}")" mkdir -p "$COREBOOT_DIR/util/crossgcc/tarballs" ( cd "$COREBOOT_DIR/util/crossgcc/tarballs" + rm -f "$PKG_BASENAME" ln -s "$PKGS_DIR/coreboot-crossgcc-$PKG_BASENAME" "$PKG_BASENAME" )