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 <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2024-01-10 13:24:34 -05:00
parent 90d1c2e9e3
commit ff1d606be6
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -128,5 +128,6 @@ BIN_DIR="$(dirname "${BASH_SOURCE[0]}")"
mkdir -p "$COREBOOT_DIR/util/crossgcc/tarballs" mkdir -p "$COREBOOT_DIR/util/crossgcc/tarballs"
( (
cd "$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" ln -s "$PKGS_DIR/coreboot-crossgcc-$PKG_BASENAME" "$PKG_BASENAME"
) )