Changeset 105fcf0 in mainline for tools/toolchain.sh
- Timestamp:
- 2018-04-09T15:04:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0a4667a7
- Parents:
- 231c770
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
r231c770 r105fcf0 29 29 # 30 30 31 BINUTILS_VERSION="2. 28"31 BINUTILS_VERSION="2.30" 32 32 BINUTILS_RELEASE="" 33 33 ## BINUTILS_PATCHES="toolchain-binutils-2.23.1.patch" 34 GCC_VERSION="7. 1.0"34 GCC_VERSION="7.3.0" 35 35 ## GCC_PATCHES="toolchain-gcc-4.8.1-targets.patch toolchain-gcc-4.8.1-headers.patch" 36 GDB_VERSION=" 7.12.1"36 GDB_VERSION="8.1" 37 37 ## GDB_PATCHES="toolchain-gdb-7.6.1.patch" 38 38 … … 40 40 SRCDIR="$(readlink -f $(dirname "$0"))" 41 41 BINUTILS="binutils-${BINUTILS_VERSION}${BINUTILS_RELEASE}.tar.bz2" 42 GCC="gcc-${GCC_VERSION}.tar. bz2"42 GCC="gcc-${GCC_VERSION}.tar.xz" 43 43 GDB="gdb-${GDB_VERSION}.tar.gz" 44 44 … … 279 279 echo ">>> Downloading tarballs" 280 280 281 download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" " 9e8340c96626b469a603c15c9d843727"282 download_fetch "${GCC_SOURCE}" "${GCC}" " 6bf56a2bca9dac9dbbf8e8d1036964a8"283 download_fetch "${GDB_SOURCE}" "${GDB}" "0 6c8f40521ed65fe36ebc2be29b56942"281 download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "cc47a2f256b4a593206b4d7e62a60b32" 282 download_fetch "${GCC_SOURCE}" "${GCC}" "be2da21680f27624f3a87055c4ba5af2" 283 download_fetch "${GDB_SOURCE}" "${GDB}" "0c85ecbb43569ec43b1c9230622e84ab" 284 284 285 285 echo ">>> Unpacking tarballs" … … 434 434 435 435 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." 458 455 459 456 # Symlink clang and lld to the install path.
Note:
See TracChangeset
for help on using the changeset viewer.