diff --git a/build-devkit.sh b/build-devkit.sh index c3f3135..8c5443a 100755 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -200,6 +200,8 @@ if [ $VERSION -eq 2 ]; then targetarchives="libogc-src-${LIBOGC_VER}.tar.bz2 libfat-src-${LIBFAT_VER}.tar.bz2" hostarchives="gamecube-tools-$GAMECUBE_TOOLS_VER.tar.bz2 wiiload-$WIILOAD_VER.tar.bz2 general-tools-$GENERAL_TOOLS_VER.tar.bz2" + + archives="binutils-${MN_BINUTILS_VER}.tar.bz2 $archives" fi if [ $VERSION -eq 3 ]; then @@ -233,6 +235,10 @@ rm -fr gcc-$GCC_VER/zlib extract_and_patch newlib $NEWLIB_VER gz extract_and_patch gdb $GDB_VER bz2 +if [ $VERSION -eq 2 ]; then + extract_and_patch binutils $MN_BINUTILS_VER bz2 +fi + for archive in $targetarchives do destdir=$(echo $archive | sed -e 's/\(.*\)-src-\(.*\)\.tar\.bz2/\1-\2/' ) diff --git a/dkppc/scripts/build-gcc.sh b/dkppc/scripts/build-gcc.sh index b11d85b..b42e1bb 100755 --- a/dkppc/scripts/build-gcc.sh +++ b/dkppc/scripts/build-gcc.sh @@ -45,7 +45,7 @@ cd mn10200/binutils if [ ! -f configured-binutils ] then - CFLAGS=$cflags LDFLAGS=$ldflags ../../binutils-$BINUTILS_VER/configure \ + CFLAGS=$cflags LDFLAGS=$ldflags ../../binutils-$MN_BINUTILS_VER/configure \ --prefix=$prefix --target=mn10200 --disable-nls --disable-debug \ --disable-werror $CROSS_PARAMS \ || { echo "Error configuing mn10200 binutils"; exit 1; } diff --git a/select_toolchain.sh b/select_toolchain.sh index b330cc7..b6035d9 100755 --- a/select_toolchain.sh +++ b/select_toolchain.sh @@ -42,6 +42,7 @@ case "$VERSION" in "2" ) GCC_VER=6.3.0 BINUTILS_VER=2.27 + MN_BINUTILS_VER=2.15a NEWLIB_VER=2.5.0 GDB_VER=7.11 basedir='dkppc'