Changeset a33f0a6 in mainline for tools/toolchain.sh


Ignore:
Timestamp:
2011-08-03T17:34:57Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1940326
Parents:
52a79081 (diff), 3fab770 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r52a79081 ra33f0a6  
    5454
    5555BINUTILS_VERSION="2.21"
    56 GCC_VERSION="4.6.0"
     56GCC_VERSION="4.6.1"
     57GDB_VERSION="7.2"
    5758
    5859BASEDIR="`pwd`"
     
    6162GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
    6263GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
     64GDB="gdb-${GDB_VERSION}.tar.bz2"
    6365
    6466#
     
    269271        BINUTILS_SOURCE="ftp://ftp.gnu.org/gnu/binutils/"
    270272        GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
     273        GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/"
    271274       
    272275        download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "c84c5acc9d266f1a7044b51c85a823f5"
    273         download_fetch "${GCC_SOURCE}" "${GCC_CORE}" "b1957f3209080b2f55bc3756d3a62b7c"
    274         download_fetch "${GCC_SOURCE}" "${GCC_OBJC}" "120d4675366ee82ea52f9ed65b57da04"
    275         download_fetch "${GCC_SOURCE}" "${GCC_CPP}" "a30090fa655d0db4c970740d353c81f1"
     276        download_fetch "${GCC_SOURCE}" "${GCC_CORE}" "0c0e7e35d2215e19de9c97efba507553"
     277        download_fetch "${GCC_SOURCE}" "${GCC_OBJC}" "cbf0d4b701827922cf37ba6a4ace0079"
     278        download_fetch "${GCC_SOURCE}" "${GCC_CPP}" "0d75ca7ca35b1e7f252223f9d23a6ad1"
     279        download_fetch "${GDB_SOURCE}" "${GDB}" "64260e6c56979ee750a01055f16091a5"
    276280}
    277281
     
    284288        GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}"
    285289        OBJDIR="${WORKDIR}/gcc-obj"
     290        GDBDIR="${WORKDIR}/gdb-${GDB_VERSION}"
    286291       
    287292        if [ -z "${CROSS_PREFIX}" ] ; then
     
    296301        source_check "${BASEDIR}/${GCC_OBJC}"
    297302        source_check "${BASEDIR}/${GCC_CPP}"
     303        source_check "${BASEDIR}/${GDB}"
    298304       
    299305        echo ">>> Removing previous content"
     
    312318        unpack_tarball "${BASEDIR}/${GCC_OBJC}" "Objective C"
    313319        unpack_tarball "${BASEDIR}/${GCC_CPP}" "C++"
     320        unpack_tarball "${BASEDIR}/${GDB}" "GDB"
    314321       
    315322        echo ">>> Processing binutils (${PLATFORM})"
     
    336343        PATH="${PATH}:${PREFIX}/bin" make all-gcc install-gcc
    337344        check_error $? "Error compiling/installing GCC."
     345       
     346        echo ">>> Processing GDB (${PLATFORM})"
     347        cd "${GDBDIR}"
     348        check_error $? "Change directory failed."
     349       
     350        change_title "GDB: configure (${PLATFORM})"
     351        ./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-"
     352        check_error $? "Error configuring GDB."
     353       
     354        change_title "GDB: make (${PLATFORM})"
     355        make all install
     356        check_error $? "Error compiling/installing GDB."
    338357       
    339358        cd "${BASEDIR}"
Note: See TracChangeset for help on using the changeset viewer.