~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to tools/toolchain.sh

  • Committer: Martin Decky
  • Date: 2012-04-07 12:29:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1454.
  • Revision ID: martin@decky.cz-20120407122954-zkmrlcp30ygym0ct
bump GCC to 4.7.0 (no longer distributed in separate packages)
switch to ARM EABI (the original ABI is obsolete now)

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
BINUTILS_VERSION="2.22"
56
56
BINUTILS_RELEASE=""
57
 
GCC_VERSION="4.6.3"
 
57
GCC_VERSION="4.7.0"
58
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
#
274
272
        GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/"
275
273
        
276
274
        download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "ee0f10756c84979622b992a4a61ea3f5"
277
 
        download_fetch "${GCC_SOURCE}" "${GCC_CORE}" "766091220c6a14fcaa2c06dd573e3758"
278
 
        download_fetch "${GCC_SOURCE}" "${GCC_OBJC}" "48ba23770c34b1cb468f72618b4452c5"
279
 
        download_fetch "${GCC_SOURCE}" "${GCC_CPP}" "37515158a0fb3d0800ec41a08c05e69e"
 
275
        download_fetch "${GCC_SOURCE}" "${GCC}" "2a0f1d99fda235c29d40b561f81d9a77"
280
276
        download_fetch "${GDB_SOURCE}" "${GDB}" "95a9a8305fed4d30a30a6dc28ff9d060"
281
277
}
282
278
 
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" &