Changeset d2bd00f0 in mainline


Ignore:
Timestamp:
2017-05-04T22:28:59Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
75b24cd
Parents:
14d5223
Message:

bump to GCC 7.1, binutils 2.28 (both now include upstream support for RISC-V)
no upstream support for RISC-V in GDB so far

Location:
tools
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r14d5223 rd2bd00f0  
    5757EOF
    5858
    59 BINUTILS_VERSION="2.27"
     59BINUTILS_VERSION="2.28"
    6060BINUTILS_RELEASE=""
    6161## BINUTILS_PATCHES="toolchain-binutils-2.23.1.patch"
    62 GCC_VERSION="6.3.0"
     62GCC_VERSION="7.1.0"
    6363## GCC_PATCHES="toolchain-gcc-4.8.1-targets.patch toolchain-gcc-4.8.1-headers.patch"
    6464GDB_VERSION="7.12.1"
     
    152152        echo "Possible target platforms are:"
    153153        echo " amd64      AMD64 (x86-64, x64)"
    154         echo " arm32      ARM"
     154        echo " arm32      ARM 32b"
    155155        echo " ia32       IA-32 (x86, i386)"
    156156        echo " ia64       IA-64 (Itanium)"
     
    158158        echo " mips32eb   MIPS big-endian 32b"
    159159        echo " mips64     MIPS little-endian 64b"
    160         echo " ppc32      32-bit PowerPC"
    161         echo " ppc64      64-bit PowerPC"
     160        echo " ppc32      PowerPC 32b"
     161        echo " ppc64      PowerPC 64v"
     162        echo " riscv64    RISC-V 64b"
    162163        echo " sparc64    SPARC V9"
    163164        echo " all        build all targets"
     
    348349        GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/"
    349350       
    350         download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "2869c9bf3e60ee97c74ac2a6bf4e9d68"
    351         download_fetch "${GCC_SOURCE}" "${GCC}" "677a7623c7ef6ab99881bc4e048debb6"
     351        download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "9e8340c96626b469a603c15c9d843727"
     352        download_fetch "${GCC_SOURCE}" "${GCC}" "6bf56a2bca9dac9dbbf8e8d1036964a8"
    352353        download_fetch "${GDB_SOURCE}" "${GDB}" "06c8f40521ed65fe36ebc2be29b56942"
    353354}
     
    390391                        LINUX_TARGET="ppc64-linux-gnu"
    391392                        HELENOS_TARGET="ppc64-helenos"
     393                        ;;
     394                "riscv64")
     395                        LINUX_TARGET="riscv64-unknown-linux-gnu"
     396                        HELENOS_TARGET="riscv64-helenos"
    392397                        ;;
    393398                "sparc64")
     
    514519       
    515520       
    516         echo ">>> Processing GDB (${PLATFORM})"
    517         cd "${GDBDIR}"
    518         check_error $? "Change directory failed."
    519        
    520         change_title "GDB: configure (${PLATFORM})"
    521         PATH="$PATH:${INSTALL_DIR}/${PREFIX}/bin" ./configure \
    522                 "--target=${TARGET}" \
    523                 "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" \
    524                 --enable-werror=no
    525         check_error $? "Error configuring GDB."
    526        
    527         change_title "GDB: make (${PLATFORM})"
    528         PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make all
    529         check_error $? "Error compiling GDB."
    530        
    531         change_title "GDB: make (${PLATFORM})"
    532         if $REAL_INSTALL; then
    533                 PATH="${PATH}:${PREFIX}/bin" make install
    534         else
    535                 PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install "DESTDIR=${INSTALL_DIR}"
    536         fi
    537         check_error $? "Error installing GDB."
     521        # No GDB support for RISC-V so far
     522        if [ "$PLATFORM" != "riscv64" ] ; then
     523                echo ">>> Processing GDB (${PLATFORM})"
     524                cd "${GDBDIR}"
     525                check_error $? "Change directory failed."
     526               
     527                change_title "GDB: configure (${PLATFORM})"
     528                PATH="$PATH:${INSTALL_DIR}/${PREFIX}/bin" ./configure \
     529                        "--target=${TARGET}" \
     530                        "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" \
     531                        --enable-werror=no
     532                check_error $? "Error configuring GDB."
     533               
     534                change_title "GDB: make (${PLATFORM})"
     535                PATH="${PATH}:${PREFIX}/bin:${INSTALL_DIR}/${PREFIX}/bin" make all
     536                check_error $? "Error compiling GDB."
     537               
     538                change_title "GDB: make (${PLATFORM})"
     539                if $REAL_INSTALL ; then
     540                        PATH="${PATH}:${PREFIX}/bin" make install
     541                else
     542                        PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install "DESTDIR=${INSTALL_DIR}"
     543                fi
     544                check_error $? "Error installing GDB."
     545        fi
    538546       
    539547       
     
    569577
    570578case "$1" in
    571         amd64|arm32|ia32|ia64|mips32|mips32eb|mips64|ppc32|ppc64|sparc64)
     579        amd64|arm32|ia32|ia64|mips32|mips32eb|mips64|ppc32|ppc64|riscv64|sparc64)
    572580                prepare
    573581                build_target "$1"
     
    584592                build_target "ppc32"
    585593                build_target "ppc64"
     594                build_target "riscv64"
    586595                build_target "sparc64"
    587596                ;;
     
    597606                build_target "ppc32" &
    598607                build_target "ppc64" &
     608                build_target "riscv64" &
    599609                build_target "sparc64" &
    600610                wait
     
    618628                wait
    619629               
     630                build_target "riscv64" &
    620631                build_target "ppc64" &
     632                wait
     633               
    621634                build_target "sparc64" &
    622635                wait
Note: See TracChangeset for help on using the changeset viewer.