Subversion Repositories HelenOS

Rev

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

Rev 2131 Rev 2292
Line 14... Line 14...
14
    exit
14
    exit
15
    fi
15
    fi
16
}
16
}
17
 
17
 
18
BINUTILS_VERSION="2.17"
18
BINUTILS_VERSION="2.17"
19
GCC_VERSION="4.1.1"
19
GCC_VERSION="4.1.2"
20
 
20
 
21
INCLUDES="ia64-pc-gnu-linux_includes.tar.bz2"
21
INCLUDES="ia64-pc-gnu-linux_includes.tar.bz2"
22
BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz"
22
BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz"
23
GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
23
GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
24
GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
24
GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
Line 29... Line 29...
29
GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
29
GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
30
 
30
 
31
PLATFORM="ia64"
31
PLATFORM="ia64"
32
WORKDIR=`pwd`
32
WORKDIR=`pwd`
33
TARGET="${PLATFORM}-pc-linux-gnu"
33
TARGET="${PLATFORM}-pc-linux-gnu"
34
HOST="i686-pc-linux-gnu"
-
 
35
PREFIX="/usr/local/${PLATFORM}"
34
PREFIX="/usr/local/${PLATFORM}"
36
INCLUDESDIR="${WORKDIR}/include"
35
INCLUDESDIR="${WORKDIR}/include"
37
BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}"
36
BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}"
38
GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}"
37
GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}"
39
OBJDIR="${WORKDIR}/gcc-obj"
38
OBJDIR="${WORKDIR}/gcc-obj"
Line 88... Line 87...
88
check_error $? "Error unpacking GCC C++."
87
check_error $? "Error unpacking GCC C++."
89
 
88
 
90
echo ">>> Compiling and installing binutils"
89
echo ">>> Compiling and installing binutils"
91
cd "${BINUTILSDIR}"
90
cd "${BINUTILSDIR}"
92
check_error $? "Change directory failed."
91
check_error $? "Change directory failed."
93
./configure "--host=${HOST}" "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls"
92
./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" "--disable-nls"
94
check_error $? "Error configuring binutils."
93
check_error $? "Error configuring binutils."
95
make all install
94
make all install
96
check_error $? "Error compiling/installing binutils."
95
check_error $? "Error compiling/installing binutils."
97
 
96
 
98
echo ">>> Compiling and installing GCC"
97
echo ">>> Compiling and installing GCC"
99
cd "${OBJDIR}"
98
cd "${OBJDIR}"
100
check_error $? "Change directory failed."
99
check_error $? "Change directory failed."
101
"${GCCDIR}/configure" "--host=${HOST}" "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --with-gnu-as --with-gnu-ld --disable-nls --disable-threads --enable-languages=c,objc,c++,obj-c++ --disable-multilib --disable-libgcj "--with-headers=${INCLUDESDIR}" --disable-shared
100
"${GCCDIR}/configure" "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --with-gnu-as --with-gnu-ld --disable-nls --disable-threads --enable-languages=c,objc,c++,obj-c++ --disable-multilib --disable-libgcj "--with-headers=${INCLUDESDIR}" --disable-shared
102
check_error $? "Error configuring GCC."
101
check_error $? "Error configuring GCC."
103
PATH="${PATH}:${PREFIX}/bin" make all-gcc install-gcc
102
PATH="${PATH}:${PREFIX}/bin" make all-gcc install-gcc
104
check_error $? "Error compiling/installing GCC."
103
check_error $? "Error compiling/installing GCC."
105
 
104
 
106
echo
105
echo