1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:47:45 +00:00

Toolchain: Use xz-compressed GCC and Binutils archives

This reduces the downloaded archives' size from 143+46 MB to 81+25 MB.
This commit is contained in:
Daniel Bertalan 2023-05-03 20:04:54 +02:00 committed by Andreas Kling
parent 8df5bd53da
commit 4809f60e2d

View file

@ -75,17 +75,17 @@ echo SYSROOT is "$SYSROOT"
mkdir -p "$DIR/Tarballs" mkdir -p "$DIR/Tarballs"
BINUTILS_VERSION="2.40" BINUTILS_VERSION="2.40"
BINUTILS_MD5SUM="b200db2cdd2f49019ced4016e1f9bfe7" BINUTILS_MD5SUM="007b59bd908a737c06e5a8d3d2c737eb"
BINUTILS_NAME="binutils-$BINUTILS_VERSION" BINUTILS_NAME="binutils-$BINUTILS_VERSION"
BINUTILS_PKG="${BINUTILS_NAME}.tar.gz" BINUTILS_PKG="${BINUTILS_NAME}.tar.xz"
BINUTILS_BASE_URL="https://ftp.gnu.org/gnu/binutils" BINUTILS_BASE_URL="https://ftp.gnu.org/gnu/binutils"
# Note: If you bump the gcc version, you also have to update the matching # Note: If you bump the gcc version, you also have to update the matching
# GCC_VERSION variable in the project's root CMakeLists.txt # GCC_VERSION variable in the project's root CMakeLists.txt
GCC_VERSION="12.2.0" GCC_VERSION="12.2.0"
GCC_MD5SUM="d7644b494246450468464ffc2c2b19c3" GCC_MD5SUM="73bafd0af874439dcdb9fc063b6fb069"
GCC_NAME="gcc-$GCC_VERSION" GCC_NAME="gcc-$GCC_VERSION"
GCC_PKG="${GCC_NAME}.tar.gz" GCC_PKG="${GCC_NAME}.tar.xz"
GCC_BASE_URL="https://ftp.gnu.org/gnu/gcc" GCC_BASE_URL="https://ftp.gnu.org/gnu/gcc"
buildstep() { buildstep() {
@ -208,7 +208,7 @@ pushd "$DIR/Tarballs"
rm -rf "${DIR}/Build/${ARCH}/${BINUTILS_NAME}" rm -rf "${DIR}/Build/${ARCH}/${BINUTILS_NAME}"
fi fi
echo "Extracting binutils..." echo "Extracting binutils..."
tar -xzf ${BINUTILS_PKG} tar -xJf ${BINUTILS_PKG}
pushd ${BINUTILS_NAME} pushd ${BINUTILS_NAME}
if [ "${git_patch}" = "1" ]; then if [ "${git_patch}" = "1" ]; then
@ -236,7 +236,7 @@ pushd "$DIR/Tarballs"
rm -rf "${DIR}/Build/${ARCH}/${GCC_NAME}" rm -rf "${DIR}/Build/${ARCH}/${GCC_NAME}"
fi fi
echo "Extracting gcc..." echo "Extracting gcc..."
tar -xzf ${GCC_PKG} tar -xJf ${GCC_PKG}
pushd ${GCC_NAME} pushd ${GCC_NAME}
if [ "${git_patch}" = "1" ]; then if [ "${git_patch}" = "1" ]; then