From 62f0c6dcf3f0fee8f467ef4198a4d68b99dfe86e Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Thu, 7 Feb 2008 06:46:55 +0000 Subject: [PATCH] update gcc & libogc versions download binutils snapshot from correct URL --- README.TXT | 22 +++++++++++++--------- build-devkit.sh | 24 ++++++++++++++---------- 2 files changed, 27 insertions(+), 19 deletions(-) diff --git a/README.TXT b/README.TXT index d3d8255..8028206 100644 --- a/README.TXT +++ b/README.TXT @@ -20,18 +20,22 @@ Downloading the source packages When you run the build script it will ask you to choose from one of two options, one for if you have already downloaded the source packages and another for if you want it to download them for you (using wget). If you choose option one and want to get the source packages for yourself then you can find them at the urls listed below; -binutils 2.17 - http://ftp.gnu.org/gnu/binutils/binutils-2.17.tar.bz2 -gcc-core 4.1.2 - http://ftp.gnu.org/gnu/gcc/gcc-4.1.1/gcc-core-4.1.2.tar.bz2 -gcc-g++ 4.1.2 - http://ftp.gnu.org/gnu/gcc/gcc-4.1.1/gcc-g++-4.1.2.tar.bz2 +binutils 2.18.50 - ftp://sourceware.org/pub/binutils/snapshots/binutils-2.18.50.tar.bz2 +gcc-core 4.1.2 - http://ftp.gnu.org/gnu/gcc/gcc-4.2.3/gcc-core-4.1.3.tar.bz2 +gcc-g++ 4.1.2 - http://ftp.gnu.org/gnu/gcc/gcc-4.2.3/gcc-g++-4.1.3.tar.bz2 newlib 1.15.0 - ftp://sources.redhat.com/pub/newlib/newlib-1.15.0.tar.gz -Currently devkitPPC is still using earlier versions of the tools. +Currently devkitPPC is still using an earlier version of newlib. + +newlib 1.14.0 - ftp://sources.redhat.com/pub/newlib/newlib-1.14.0.tar.gz + +devkitPSP is using earlier versions of binutils and gcc binutils 2.16.1 - http://ftp.gnu.org/gnu/binutils/binutils-2.16.1.tar.bz2 -gcc-core 3.4.6 - http://ftp.gnu.org/gnu/gcc/gcc-3.4.6/gcc-core-3.4.6.tar.bz2 -gcc-g++ 3.4.6 - http://ftp.gnu.org/gnu/gcc/gcc-3.4.6/gcc-g++-3.4.6.tar.bz2 -newlib 1.14.0 - ftp://sources.redhat.com/pub/newlib/newlib-1.14.0.tar.gz +gcc-core 4.1.2 - http://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-core-4.1.2.tar.bz2 +gcc-g++ 4.1.2 - http://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-g++-4.1.2.tar.bz2 + libogc, libgba, libnds, libmirko, dswifi and libfat can be found in the sourceforge project. @@ -76,9 +80,9 @@ Several specs files are built in for the various platforms Getting started --------------- -The best thing to do next is test the compiler, so go to http://www.devkit.tk and download "libgba" from the downloads section and also "PCXview" from the sample code section. - +The best thing to do next is test the compiler, so grab an examples tarball from sourceforge & run make in the top level. +http://sourceforge.net/project/showfiles.php?group_id=114505&package_id=159894 Using devkitPPC --------------- diff --git a/build-devkit.sh b/build-devkit.sh index 0d651fb..79ce32c 100644 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -6,7 +6,7 @@ #--------------------------------------------------------------------------------- # specify some urls to download the source packages from #--------------------------------------------------------------------------------- -LIBOGC_VER=20071211 +LIBOGC_VER=20080207 LIBGBA_VER=20060720 LIBNDS_VER=20071023 LIBFAT_VER=20070127 @@ -55,7 +55,7 @@ done case "$VERSION" in "1" ) - GCC_VER=4.1.2 + GCC_VER=4.2.3 BINUTILS_VER=2.18.50 NEWLIB_VER=1.15.0 basedir='dkarm-eabi' @@ -65,7 +65,7 @@ case "$VERSION" in toolchain=DEVKITARM ;; "2" ) - GCC_VER=4.1.2 + GCC_VER=4.2.3 BINUTILS_VER=2.18.50 NEWLIB_VER=1.14.0 basedir='dkppc' @@ -99,7 +99,16 @@ GCC_GPP="gcc-g++-$GCC_VER.tar.bz2" GCC_CORE_URL="http://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/$GCC_CORE" GCC_GPP_URL="http://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/$GCC_GPP" BINUTILS="binutils-$BINUTILS_VER.tar.bz2" -BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/$BINUTILS" + +case "$BINUTILS_VER" in + "2.18.50" ) + BINUTILS_URL="ftp://sourceware.org/pub/binutils/snapshots/$BINUTILS" + ;; + * ) + BINUTILS_URL="http://ftp.gnu.org/gnu/binutils/$BINUTILS" + ;; +esac + NEWLIB="newlib-$NEWLIB_VER.tar.gz" NEWLIB_URL="ftp://sources.redhat.com/pub/newlib/$NEWLIB" @@ -108,7 +117,7 @@ DOWNLOAD=0 while [ $DOWNLOAD -eq 0 ] do echo - echo "The installation requires binutils-$BINUTILS_VER, gcc$GCC_VER and newlib-$NEWLIB_VER. Please select an option:" + echo "The installation requires binutils-$BINUTILS_VER, gcc-$GCC_VER and newlib-$NEWLIB_VER. Please select an option:" echo echo "1: I have already downloaded the source packages" echo "2: Download the packages for me (requires wget)" @@ -439,11 +448,6 @@ do strip $f done -#--------------------------------------------------------------------------------- -# remove rather large pre-compiled headers -#--------------------------------------------------------------------------------- -rm -fr $INSTALLDIR/$package/include/c++/$GCC_VER/$target/bits/stdc++.h.gch - #--------------------------------------------------------------------------------- # strip debug info from libraries #---------------------------------------------------------------------------------