Changeset 105fcf0 in mainline for tools/toolchain.sh


Ignore:
Timestamp:
2018-04-09T15:04:04Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0a4667a7
Parents:
231c770
Message:

bump to binutils 2.30, GCC 7.3 and GDB 8.1

GDB now supports RISC-V

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r231c770 r105fcf0  
    2929#
    3030
    31 BINUTILS_VERSION="2.28"
     31BINUTILS_VERSION="2.30"
    3232BINUTILS_RELEASE=""
    3333## BINUTILS_PATCHES="toolchain-binutils-2.23.1.patch"
    34 GCC_VERSION="7.1.0"
     34GCC_VERSION="7.3.0"
    3535## GCC_PATCHES="toolchain-gcc-4.8.1-targets.patch toolchain-gcc-4.8.1-headers.patch"
    36 GDB_VERSION="7.12.1"
     36GDB_VERSION="8.1"
    3737## GDB_PATCHES="toolchain-gdb-7.6.1.patch"
    3838
     
    4040SRCDIR="$(readlink -f $(dirname "$0"))"
    4141BINUTILS="binutils-${BINUTILS_VERSION}${BINUTILS_RELEASE}.tar.bz2"
    42 GCC="gcc-${GCC_VERSION}.tar.bz2"
     42GCC="gcc-${GCC_VERSION}.tar.xz"
    4343GDB="gdb-${GDB_VERSION}.tar.gz"
    4444
     
    279279        echo ">>> Downloading tarballs"
    280280
    281         download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "9e8340c96626b469a603c15c9d843727"
    282         download_fetch "${GCC_SOURCE}" "${GCC}" "6bf56a2bca9dac9dbbf8e8d1036964a8"
    283         download_fetch "${GDB_SOURCE}" "${GDB}" "06c8f40521ed65fe36ebc2be29b56942"
     281        download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "cc47a2f256b4a593206b4d7e62a60b32"
     282        download_fetch "${GCC_SOURCE}" "${GCC}" "be2da21680f27624f3a87055c4ba5af2"
     283        download_fetch "${GDB_SOURCE}" "${GDB}" "0c85ecbb43569ec43b1c9230622e84ab"
    284284
    285285        echo ">>> Unpacking tarballs"
     
    434434
    435435
    436         # No GDB support for RISC-V so far
    437         if [ "$PLATFORM" != "riscv64" ] ; then
    438                 echo ">>> Processing GDB (${PLATFORM})"
    439                 mkdir -p "${GDBDIR}"
    440                 cd "${GDBDIR}"
    441                 check_error $? "Change directory failed."
    442 
    443                 change_title "GDB: configure (${PLATFORM})"
    444                 PATH="$PATH:${INSTALL_DIR}/${PREFIX}/bin" "${BASEDIR}/downloads/gdb-${GDB_VERSION}/configure" \
    445                         "--target=${TARGET}" \
    446                         "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" \
    447                         --enable-werror=no --without-guile
    448                 check_error $? "Error configuring GDB."
    449 
    450                 change_title "GDB: make (${PLATFORM})"
    451                 PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make all
    452                 check_error $? "Error compiling GDB."
    453 
    454                 change_title "GDB: make (${PLATFORM})"
    455                 PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install "DESTDIR=${INSTALL_DIR}"
    456                 check_error $? "Error installing GDB."
    457         fi
     436        echo ">>> Processing GDB (${PLATFORM})"
     437        mkdir -p "${GDBDIR}"
     438        cd "${GDBDIR}"
     439        check_error $? "Change directory failed."
     440
     441        change_title "GDB: configure (${PLATFORM})"
     442        PATH="$PATH:${INSTALL_DIR}/${PREFIX}/bin" "${BASEDIR}/downloads/gdb-${GDB_VERSION}/configure" \
     443                "--target=${TARGET}" \
     444                "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" \
     445                --enable-werror=no --without-guile
     446        check_error $? "Error configuring GDB."
     447
     448        change_title "GDB: make (${PLATFORM})"
     449        PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make all
     450        check_error $? "Error compiling GDB."
     451
     452        change_title "GDB: make (${PLATFORM})"
     453        PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install "DESTDIR=${INSTALL_DIR}"
     454        check_error $? "Error installing GDB."
    458455
    459456        # Symlink clang and lld to the install path.
Note: See TracChangeset for help on using the changeset viewer.