~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to tools/toolchain.sh

MergeĀ mainlineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
#endif
53
53
EOF
54
54
 
55
 
BINUTILS_VERSION="2.21.1"
56
 
BINUTILS_RELEASE="a"
57
 
GCC_VERSION="4.6.2"
58
 
GDB_VERSION="7.3.1"
 
55
BINUTILS_VERSION="2.22"
 
56
BINUTILS_RELEASE=""
 
57
GCC_VERSION="4.7.0"
 
58
GDB_VERSION="7.4"
59
59
 
60
60
BASEDIR="`pwd`"
61
61
BINUTILS="binutils-${BINUTILS_VERSION}${BINUTILS_RELEASE}.tar.bz2"
62
 
GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
63
 
GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
64
 
GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
 
62
GCC="gcc-${GCC_VERSION}.tar.bz2"
65
63
GDB="gdb-${GDB_VERSION}.tar.bz2"
66
64
 
67
65
#
273
271
        GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
274
272
        GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/"
275
273
        
276
 
        download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "bde820eac53fa3a8d8696667418557ad"
277
 
        download_fetch "${GCC_SOURCE}" "${GCC_CORE}" "780f614ab18c7a9066dec6387d7490b2"
278
 
        download_fetch "${GCC_SOURCE}" "${GCC_OBJC}" "94043cc0d08394eddebed73f30ecad89"
279
 
        download_fetch "${GCC_SOURCE}" "${GCC_CPP}" "87ecd60431e41096419dd8a10f76e46b"
280
 
        download_fetch "${GDB_SOURCE}" "${GDB}" "b89a5fac359c618dda97b88645ceab47"
 
274
        download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "ee0f10756c84979622b992a4a61ea3f5"
 
275
        download_fetch "${GCC_SOURCE}" "${GCC}" "2a0f1d99fda235c29d40b561f81d9a77"
 
276
        download_fetch "${GDB_SOURCE}" "${GDB}" "95a9a8305fed4d30a30a6dc28ff9d060"
281
277
}
282
278
 
283
279
build_target() {
298
294
        
299
295
        echo ">>> Downloading tarballs"
300
296
        source_check "${BASEDIR}/${BINUTILS}"
301
 
        source_check "${BASEDIR}/${GCC_CORE}"
302
 
        source_check "${BASEDIR}/${GCC_OBJC}"
303
 
        source_check "${BASEDIR}/${GCC_CPP}"
 
297
        source_check "${BASEDIR}/${GCC}"
304
298
        source_check "${BASEDIR}/${GDB}"
305
299
        
306
300
        echo ">>> Removing previous content"
315
309
        check_error $? "Change directory failed."
316
310
        
317
311
        unpack_tarball "${BASEDIR}/${BINUTILS}" "binutils"
318
 
        unpack_tarball "${BASEDIR}/${GCC_CORE}" "GCC Core"
319
 
        unpack_tarball "${BASEDIR}/${GCC_OBJC}" "Objective C"
320
 
        unpack_tarball "${BASEDIR}/${GCC_CPP}" "C++"
 
312
        unpack_tarball "${BASEDIR}/${GCC}" "GCC"
321
313
        unpack_tarball "${BASEDIR}/${GDB}" "GDB"
322
314
        
323
315
        echo ">>> Processing binutils (${PLATFORM})"
377
369
                ;;
378
370
        "arm32")
379
371
                prepare
380
 
                build_target "arm32" "arm-linux-gnu"
 
372
                build_target "arm32" "arm-linux-gnueabi"
381
373
                ;;
382
374
        "ia32")
383
375
                prepare
414
406
        "all")
415
407
                prepare
416
408
                build_target "amd64" "amd64-linux-gnu"
417
 
                build_target "arm32" "arm-linux-gnu"
 
409
                build_target "arm32" "arm-linux-gnueabi"
418
410
                build_target "ia32" "i686-pc-linux-gnu"
419
411
                build_target "ia64" "ia64-pc-linux-gnu"
420
412
                build_target "mips32" "mipsel-linux-gnu"
427
419
        "parallel")
428
420
                prepare
429
421
                build_target "amd64" "amd64-linux-gnu" &
430
 
                build_target "arm32" "arm-linux-gnu" &
 
422
                build_target "arm32" "arm-linux-gnueabi" &
431
423
                build_target "ia32" "i686-pc-linux-gnu" &
432
424
                build_target "ia64" "ia64-pc-linux-gnu" &
433
425
                build_target "mips32" "mipsel-linux-gnu" &