Subversion Repositories HelenOS

Rev

Rev 2578 | Rev 3369 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2578 Rev 3177
Line 14... Line 14...
14
    exit
14
    exit
15
    fi
15
    fi
16
}
16
}
17
 
17
 
18
BINUTILS_VERSION="2.18"
18
BINUTILS_VERSION="2.18"
19
GCC_VERSION="4.2.2"
19
GCC_VERSION="4.3.1"
20
 
20
 
21
INCLUDES="ia64-pc-gnu-linux_includes.tar.bz2"
-
 
22
BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz"
21
BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz"
23
GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
22
GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
24
GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
23
GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
25
GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
24
GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
26
 
25
 
27
INCLUDES_SOURCE="http://download.decky.cz/"
-
 
28
BINUTILS_SOURCE="ftp://ftp.gnu.org/gnu/binutils/"
26
BINUTILS_SOURCE="ftp://ftp.gnu.org/gnu/binutils/"
29
GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
27
GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
30
 
28
 
31
PLATFORM="ia64"
29
PLATFORM="ia64"
32
WORKDIR=`pwd`
30
WORKDIR=`pwd`
Line 37... Line 35...
37
GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}"
35
GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}"
38
OBJDIR="${WORKDIR}/gcc-obj"
36
OBJDIR="${WORKDIR}/gcc-obj"
39
 
37
 
40
echo ">>> Downloading tarballs"
38
echo ">>> Downloading tarballs"
41
 
39
 
42
if [ ! -f "${INCLUDES}" ]; then
-
 
43
    wget -c "${INCLUDES_SOURCE}${INCLUDES}"
-
 
44
    check_error $? "Error downloading includes."
-
 
45
fi
-
 
46
if [ ! -f "${BINUTILS}" ]; then
40
if [ ! -f "${BINUTILS}" ]; then
47
    wget -c "${BINUTILS_SOURCE}${BINUTILS}"
41
    wget -c "${BINUTILS_SOURCE}${BINUTILS}"
48
    check_error $? "Error downloading binutils."
42
    check_error $? "Error downloading binutils."
49
fi
43
fi
50
if [ ! -f "${GCC_CORE}" ]; then
44
if [ ! -f "${GCC_CORE}" ]; then
Line 73... Line 67...
73
    test -d "${OBJDIR}"
67
    test -d "${OBJDIR}"
74
    check_error $? "Unable to create ${OBJDIR}."
68
    check_error $? "Unable to create ${OBJDIR}."
75
fi
69
fi
76
 
70
 
77
echo ">>> Unpacking tarballs"
71
echo ">>> Unpacking tarballs"
78
tar -xvjf "${INCLUDES}"
-
 
79
check_error $? "Error unpacking includes."
-
 
80
tar -xvzf "${BINUTILS}"
72
tar -xvzf "${BINUTILS}"
81
check_error $? "Error unpacking binutils."
73
check_error $? "Error unpacking binutils."
82
tar -xvjf "${GCC_CORE}"
74
tar -xvjf "${GCC_CORE}"
83
check_error $? "Error unpacking GCC Core."
75
check_error $? "Error unpacking GCC Core."
84
tar -xvjf "${GCC_OBJC}"
76
tar -xvjf "${GCC_OBJC}"
Line 95... Line 87...
95
check_error $? "Error compiling/installing binutils."
87
check_error $? "Error compiling/installing binutils."
96
 
88
 
97
echo ">>> Compiling and installing GCC"
89
echo ">>> Compiling and installing GCC"
98
cd "${OBJDIR}"
90
cd "${OBJDIR}"
99
check_error $? "Change directory failed."
91
check_error $? "Change directory failed."
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
92
"${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 --disable-shared
101
check_error $? "Error configuring GCC."
93
check_error $? "Error configuring GCC."
102
PATH="${PATH}:${PREFIX}/bin" make all-gcc install-gcc
94
PATH="${PATH}:${PREFIX}/bin" make all-gcc install-gcc
103
check_error $? "Error compiling/installing GCC."
95
check_error $? "Error compiling/installing GCC."
104
 
96
 
105
echo
97
echo