Subversion Repositories HelenOS

Rev

Rev 3799 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3799 Rev 4134
Line 17... Line 17...
17
 
17
 
18
if [ -z "${CROSS_PREFIX}" ] ; then
18
if [ -z "${CROSS_PREFIX}" ] ; then
19
    CROSS_PREFIX="/usr/local"
19
    CROSS_PREFIX="/usr/local"
20
fi
20
fi
21
 
21
 
22
BINUTILS_VERSION="2.19"
22
BINUTILS_VERSION="2.19.1"
23
GCC_VERSION="4.3.2"
23
GCC_VERSION="4.3.3"
24
 
24
 
25
BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz"
25
BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz"
26
GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
26
GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
27
GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
27
GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
28
GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
28
GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
Line 30... Line 30...
30
BINUTILS_SOURCE="ftp://ftp.gnu.org/gnu/binutils/"
30
BINUTILS_SOURCE="ftp://ftp.gnu.org/gnu/binutils/"
31
GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
31
GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
32
 
32
 
33
PLATFORM="mips"
33
PLATFORM="mips"
34
WORKDIR=`pwd`
34
WORKDIR=`pwd`
35
TARGET="${PLATFORM}-sgi-irix5"
35
TARGET="${PLATFORM}-linux-gnu"
36
PREFIX="${CROSS_PREFIX}/${PLATFORM}"
36
PREFIX="${CROSS_PREFIX}/${PLATFORM}"
37
BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}"
37
BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}"
38
GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}"
38
GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}"
39
OBJDIR="${WORKDIR}/gcc-obj"
39
OBJDIR="${WORKDIR}/gcc-obj"
40
 
40
 
Line 82... Line 82...
82
check_error $? "Error unpacking GCC C++."
82
check_error $? "Error unpacking GCC C++."
83
 
83
 
84
echo ">>> Compiling and installing binutils"
84
echo ">>> Compiling and installing binutils"
85
cd "${BINUTILSDIR}"
85
cd "${BINUTILSDIR}"
86
check_error $? "Change directory failed."
86
check_error $? "Change directory failed."
87
patch -p1 <<EOF
-
 
88
diff -Naur binutils-2.19.orig/bfd/elfxx-mips.c binutils-2.19/bfd/elfxx-mips.c
-
 
89
--- binutils-2.19.orig/bfd/elfxx-mips.c 2008-08-18 20:14:04.000000000 +0200
-
 
90
+++ binutils-2.19/bfd/elfxx-mips.c  2009-01-18 18:14:47.292011299 +0100
-
 
91
@@ -1409,7 +1409,7 @@
-
 
92
    function, or 0 if we can't decide which function that is.  */
-
 
93
 
-
 
94
 static unsigned long
-
 
95
-mips16_stub_symndx (asection *sec, const Elf_Internal_Rela *relocs,
-
 
96
+mips16_stub_symndx (asection *sec __attribute__((unused)), const Elf_Internal_Rela *relocs,
-
 
97
            const Elf_Internal_Rela *relend)
-
 
98
 {
-
 
99
   const Elf_Internal_Rela *rel;
-
 
100
EOF
-
 
101
check_error $? "Error patching binutils"
-
 
102
./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls"
87
./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls"
103
check_error $? "Error configuring binutils."
88
check_error $? "Error configuring binutils."
104
make all install
89
make all install
105
check_error $? "Error compiling/installing binutils."
90
check_error $? "Error compiling/installing binutils."
106
 
91