Changes in tools/toolchain.sh [603c8740:2a922c8] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r603c8740 r2a922c8  
    5555BINUTILS_VERSION="2.21"
    5656GCC_VERSION="4.6.0"
     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"
     
    274277        download_fetch "${GCC_SOURCE}" "${GCC_OBJC}" "120d4675366ee82ea52f9ed65b57da04"
    275278        download_fetch "${GCC_SOURCE}" "${GCC_CPP}" "a30090fa655d0db4c970740d353c81f1"
     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.