From 93ccf25d24bb73c89ff51e17d847bccc78bc61e2 Mon Sep 17 00:00:00 2001 From: Jonathon Hall Date: Tue, 9 Jan 2024 10:03:51 -0500 Subject: [PATCH] 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 --- bin/fetch_coreboot_crossgcc_archive.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/fetch_coreboot_crossgcc_archive.sh b/bin/fetch_coreboot_crossgcc_archive.sh index 6496f0aa..aa7820c6 100755 --- a/bin/fetch_coreboot_crossgcc_archive.sh +++ b/bin/fetch_coreboot_crossgcc_archive.sh @@ -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" +)