Fix? toolchain

This commit is contained in:
Drew Galbraith 2023-06-13 23:32:01 -07:00
parent 2de2f1d364
commit 43a9b93192
2 changed files with 14 additions and 1 deletions

View file

@ -23,7 +23,7 @@ NEWLIB_NAME="newlib-$NEWLIB_VERSION"
NEWLIB_PKG="${NEWLIB_NAME}.tar.gz"
NEWLIB_BASE_URL="ftp://sourceware.org/pub/newlib"
GCC_VERSION="13.1.0"
GCC_VERSION="12.3.0"
GCC_NAME="gcc-$GCC_VERSION"
GCC_PKG="${GCC_NAME}.tar.xz"
GCC_BASE_URL="https://ftp.gnu.org/gnu/gcc"
@ -37,6 +37,9 @@ pushd "$TOOLCHAIN/srcs"
if [ ! -d "$BINUTILS_NAME" ]; then
tar -xJf ${BINUTILS_PKG}
pushd $BINUTILS_NAME
patch -p1 <$TOOLCHAIN/patches/binutils/00-first.patch
popd
fi
if [ ! -e $NEWLIB_PKG ]; then
@ -53,6 +56,9 @@ pushd "$TOOLCHAIN/srcs"
if [ ! -d "$GCC_NAME" ]; then
tar -xJf $GCC_PKG
pushd $GCC_NAME
patch -p1 <$TOOLCHAIN/patches/gcc/00-first.patch
popd
fi