mirror of
https://github.com/fail0verflow/bootmii-utils.git
synced 2024-12-01 22:44:18 +01:00
buildtoolchain: update to GCC 11.3 and binutils 2.39
This commit is contained in:
parent
2cfd78acea
commit
a46d26664c
@ -1,39 +0,0 @@
|
|||||||
diff -burN '--exclude=.git' binutils-2.21.1/ld/emultempl/spuelf.em binutils-2.21.1-PS3/ld/emultempl/spuelf.em
|
|
||||||
--- binutils-2.21.1/ld/emultempl/spuelf.em 2009-08-10 04:50:56.000000000 -0300
|
|
||||||
+++ binutils-2.21.1-PS3/ld/emultempl/spuelf.em 2011-05-25 10:15:21.220050910 -0300
|
|
||||||
@@ -396,7 +396,11 @@
|
|
||||||
argv[my_argc++] = "-T";
|
|
||||||
argv[my_argc++] = auto_overlay_file;
|
|
||||||
argv[my_argc] = 0;
|
|
||||||
+#if defined(_WIN32)
|
|
||||||
+ execvp (argv[0], (const char* const*) argv);
|
|
||||||
+#else
|
|
||||||
execvp (argv[0], (char *const *) argv);
|
|
||||||
+#endif
|
|
||||||
perror (argv[0]);
|
|
||||||
_exit (127);
|
|
||||||
}
|
|
||||||
diff -burN '--exclude=.git' binutils-2.21.1/binutils/Makefile.am binutils-2.21.1-PS3/binutils/Makefile.am
|
|
||||||
--- binutils-2.21.1/binutils/Makefile.am 2011-07-06 13:27:16.000000000 +0200
|
|
||||||
+++ binutils-2.21.1-PS3/binutils/Makefile.am 2011-07-06 13:28:06.000000000 +0200
|
|
||||||
@@ -283,7 +283,7 @@
|
|
||||||
$(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
|
|
||||||
|
|
||||||
embedspu: embedspu.sh Makefile
|
|
||||||
- sed "/^program_transform_name=/cprogram_transform_name=$(program_transform_name)" < $< > $@
|
|
||||||
+ awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
|
|
||||||
chmod a+x $@
|
|
||||||
|
|
||||||
# We need these for parallel make.
|
|
||||||
diff -burN '--exclude=.git' binutils-2.21.1/binutils/Makefile.in binutils-2.21.1-PS3/binutils/Makefile.in
|
|
||||||
--- binutils-2.21.1/binutils/Makefile.in 2011-07-06 13:27:23.000000000 +0200
|
|
||||||
+++ binutils-2.21.1-PS3/binutils/Makefile.in 2011-07-06 13:28:35.000000000 +0200
|
|
||||||
@@ -1295,7 +1295,7 @@
|
|
||||||
$(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
|
|
||||||
|
|
||||||
embedspu: embedspu.sh Makefile
|
|
||||||
- sed "/^program_transform_name=/cprogram_transform_name=$(program_transform_name)" < $< > $@
|
|
||||||
+ awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
|
|
||||||
chmod a+x $@
|
|
||||||
|
|
||||||
# We need these for parallel make.
|
|
@ -8,29 +8,33 @@
|
|||||||
# Released under the terms of the GNU GPL, version 2
|
# Released under the terms of the GNU GPL, version 2
|
||||||
SCRIPTDIR=`dirname $PWD/$0`
|
SCRIPTDIR=`dirname $PWD/$0`
|
||||||
|
|
||||||
BINUTILS_VER=2.21.1
|
BINUTILS_VER=2.39
|
||||||
BINUTILS_DIR="binutils-$BINUTILS_VER"
|
BINUTILS_DIR="binutils-$BINUTILS_VER"
|
||||||
BINUTILS_TARBALL="binutils-${BINUTILS_VER}a.tar.bz2"
|
BINUTILS_TARBALL="binutils-${BINUTILS_VER}.tar.bz2"
|
||||||
BINUTILS_URI="http://ftp.gnu.org/gnu/binutils/$BINUTILS_TARBALL"
|
BINUTILS_URI="http://ftp.gnu.org/gnu/binutils/$BINUTILS_TARBALL"
|
||||||
|
|
||||||
GMP_VER=4.3.2
|
GMP_VER=6.2.1
|
||||||
GMP_DIR="gmp-$GMP_VER"
|
GMP_DIR="gmp-$GMP_VER"
|
||||||
GMP_TARBALL="gmp-$GMP_VER.tar.bz2"
|
GMP_TARBALL="gmp-$GMP_VER.tar.bz2"
|
||||||
GMP_URI="http://ftp.gnu.org/gnu/gmp/$GMP_TARBALL"
|
GMP_URI="http://ftp.gnu.org/gnu/gmp/$GMP_TARBALL"
|
||||||
|
|
||||||
MPFR_VER=2.4.2
|
MPFR_VER=4.1.0
|
||||||
MPFR_DIR="mpfr-$MPFR_VER"
|
MPFR_DIR="mpfr-$MPFR_VER"
|
||||||
MPFR_TARBALL="mpfr-$MPFR_VER.tar.bz2"
|
MPFR_TARBALL="mpfr-$MPFR_VER.tar.bz2"
|
||||||
MPFR_URI="http://ftp.gnu.org/gnu/mpfr/$MPFR_TARBALL"
|
MPFR_URI="http://ftp.gnu.org/gnu/mpfr/$MPFR_TARBALL"
|
||||||
|
|
||||||
GCC_VER=4.4.7
|
MPC_VER=1.2.1
|
||||||
|
MPC_DIR=mpc-$MPC_VER
|
||||||
|
MPC_TARBALL="mpc-$MPC_VER.tar.gz"
|
||||||
|
MPC_URI="http://ftp.gnu.org/gnu/mpc/$MPC_TARBALL"
|
||||||
|
|
||||||
|
GCC_VER=11.3.0
|
||||||
GCC_DIR="gcc-$GCC_VER"
|
GCC_DIR="gcc-$GCC_VER"
|
||||||
GCC_TARBALL="gcc-core-$GCC_VER.tar.bz2"
|
GCC_TARBALL="gcc-$GCC_VER.tar.gz"
|
||||||
GCC_URI="http://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/$GCC_TARBALL"
|
GCC_URI="http://ftp.gnu.org/gnu/gcc/gcc-$GCC_VER/$GCC_TARBALL"
|
||||||
|
|
||||||
|
ARM_TARGET=armeb-none-eabi
|
||||||
ARM_TARGET=armeb-eabi
|
POWERPC_TARGET=powerpc-none-elf
|
||||||
POWERPC_TARGET=powerpc-elf
|
|
||||||
|
|
||||||
if [ -z $MAKEOPTS ]; then
|
if [ -z $MAKEOPTS ]; then
|
||||||
MAKEOPTS=-j3
|
MAKEOPTS=-j3
|
||||||
@ -86,6 +90,7 @@ prepsrc() {
|
|||||||
download "$1/var/cache/$BINUTILS_TARBALL" "$BINUTILS_URI"
|
download "$1/var/cache/$BINUTILS_TARBALL" "$BINUTILS_URI"
|
||||||
download "$1/var/cache/$GMP_TARBALL" "$GMP_URI"
|
download "$1/var/cache/$GMP_TARBALL" "$GMP_URI"
|
||||||
download "$1/var/cache/$MPFR_TARBALL" "$MPFR_URI"
|
download "$1/var/cache/$MPFR_TARBALL" "$MPFR_URI"
|
||||||
|
download "$1/var/cache/$MPC_TARBALL" "$MPC_URI"
|
||||||
download "$1/var/cache/$GCC_TARBALL" "$GCC_URI"
|
download "$1/var/cache/$GCC_TARBALL" "$GCC_URI"
|
||||||
|
|
||||||
cleansrc "$1"
|
cleansrc "$1"
|
||||||
@ -98,9 +103,8 @@ prepsrc() {
|
|||||||
mv "$1/src/$GCC_DIR/$GMP_DIR" "$1/src/$GCC_DIR/gmp" || die "Error renaming $GMP_DIR -> gmp"
|
mv "$1/src/$GCC_DIR/$GMP_DIR" "$1/src/$GCC_DIR/gmp" || die "Error renaming $GMP_DIR -> gmp"
|
||||||
extract "$1/src/$GCC_DIR" "$1/var/cache/$MPFR_TARBALL"
|
extract "$1/src/$GCC_DIR" "$1/var/cache/$MPFR_TARBALL"
|
||||||
mv "$1/src/$GCC_DIR/$MPFR_DIR" "$1/src/$GCC_DIR/mpfr" || die "Error renaming $MPFR_DIR -> mpfr"
|
mv "$1/src/$GCC_DIR/$MPFR_DIR" "$1/src/$GCC_DIR/mpfr" || die "Error renaming $MPFR_DIR -> mpfr"
|
||||||
|
extract "$1/src/$GCC_DIR" "$1/var/cache/$MPC_TARBALL"
|
||||||
# http://sourceware.org/bugzilla/show_bug.cgi?id=12964
|
mv "$1/src/$GCC_DIR/$MPC_DIR" "$1/src/$GCC_DIR/mpc" || die "Error renaming $MPC_DIR -> mpc"
|
||||||
patch -d $WIIDEV/$BINUTILS_DIR -u -p1 -i $SCRIPTDIR/binutils-2.21.1.patch || die "Error applying binutils patch"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildbinutils() {
|
buildbinutils() {
|
||||||
|
Loading…
Reference in New Issue
Block a user