bin/fetch_coreboot_crossgcc_archive.sh: Symlink archives into coreboot

Symlink the source archives into coreboot's crossgcc build rather than
copying them.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2024-01-09 10:03:51 -05:00
parent e380539202
commit 93ccf25d24
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -25,7 +25,7 @@ fi
COREBOOT_DIR="$1"
PKG_NAME="$2"
PKGS_DIR="$3"
PKGS_DIR="$(realpath "$3")" # Make sure it's an absolute path
# Get the result of a glob that should match a single thing, or die if it
# doesn't match exactly one thing.
@ -126,5 +126,7 @@ BIN_DIR="$(dirname "${BASH_SOURCE[0]}")"
# Copy to the tarballs directory so coreboot's toolchain build will use this
# archive
mkdir -p "$COREBOOT_DIR/util/crossgcc/tarballs"
cp "$PKGS_DIR/coreboot-crossgcc-$PKG_BASENAME" \
"$COREBOOT_DIR/util/crossgcc/tarballs/$PKG_BASENAME"
(
cd "$COREBOOT_DIR/util/crossgcc/tarballs"
ln -s "$PKGS_DIR/coreboot-crossgcc-$PKG_BASENAME" "$PKG_BASENAME"
)