Rev 3343 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3343 | Rev 3397 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | echo "Script failed: $2" |
13 | echo "Script failed: $2" |
14 | exit |
14 | exit |
15 | fi |
15 | fi |
16 | } |
16 | } |
17 | 17 | ||
- | 18 | if [ -z "${CROSS_PREFIX}" ] ; then |
|
- | 19 | CROSS_PREFIX="/usr/local" |
|
- | 20 | fi |
|
- | 21 | ||
18 | BINUTILS_VERSION="2.18" |
22 | BINUTILS_VERSION="2.18" |
19 | GCC_VERSION="4.3.1" |
23 | GCC_VERSION="4.3.2" |
20 | 24 | ||
21 | BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz" |
25 | BINUTILS="binutils-${BINUTILS_VERSION}.tar.gz" |
22 | GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2" |
26 | GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2" |
23 | GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2" |
27 | GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2" |
24 | GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2" |
28 | GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2" |
Line 27... | Line 31... | ||
27 | GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/" |
31 | GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/" |
28 | 32 | ||
29 | PLATFORM="amd64" |
33 | PLATFORM="amd64" |
30 | WORKDIR=`pwd` |
34 | WORKDIR=`pwd` |
31 | TARGET="${PLATFORM}-linux-gnu" |
35 | TARGET="${PLATFORM}-linux-gnu" |
32 | PREFIX="/usr/local/${PLATFORM}" |
36 | PREFIX="${CROSS_PREFIX}/${PLATFORM}" |
33 | BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}" |
37 | BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}" |
34 | GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}" |
38 | GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}" |
35 | OBJDIR="${WORKDIR}/gcc-obj" |
39 | OBJDIR="${WORKDIR}/gcc-obj" |
36 | 40 | ||
37 | echo ">>> Downloading tarballs" |
41 | echo ">>> Downloading tarballs" |