Changeset d2bd00f0 in mainline
- Timestamp:
- 2017-05-04T22:28:59Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 75b24cd
- Parents:
- 14d5223
- Location:
- tools
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
r14d5223 rd2bd00f0 57 57 EOF 58 58 59 BINUTILS_VERSION="2.2 7"59 BINUTILS_VERSION="2.28" 60 60 BINUTILS_RELEASE="" 61 61 ## BINUTILS_PATCHES="toolchain-binutils-2.23.1.patch" 62 GCC_VERSION=" 6.3.0"62 GCC_VERSION="7.1.0" 63 63 ## GCC_PATCHES="toolchain-gcc-4.8.1-targets.patch toolchain-gcc-4.8.1-headers.patch" 64 64 GDB_VERSION="7.12.1" … … 152 152 echo "Possible target platforms are:" 153 153 echo " amd64 AMD64 (x86-64, x64)" 154 echo " arm32 ARM "154 echo " arm32 ARM 32b" 155 155 echo " ia32 IA-32 (x86, i386)" 156 156 echo " ia64 IA-64 (Itanium)" … … 158 158 echo " mips32eb MIPS big-endian 32b" 159 159 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" 162 163 echo " sparc64 SPARC V9" 163 164 echo " all build all targets" … … 348 349 GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/" 349 350 350 download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" " 2869c9bf3e60ee97c74ac2a6bf4e9d68"351 download_fetch "${GCC_SOURCE}" "${GCC}" "6 77a7623c7ef6ab99881bc4e048debb6"351 download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "9e8340c96626b469a603c15c9d843727" 352 download_fetch "${GCC_SOURCE}" "${GCC}" "6bf56a2bca9dac9dbbf8e8d1036964a8" 352 353 download_fetch "${GDB_SOURCE}" "${GDB}" "06c8f40521ed65fe36ebc2be29b56942" 353 354 } … … 390 391 LINUX_TARGET="ppc64-linux-gnu" 391 392 HELENOS_TARGET="ppc64-helenos" 393 ;; 394 "riscv64") 395 LINUX_TARGET="riscv64-unknown-linux-gnu" 396 HELENOS_TARGET="riscv64-helenos" 392 397 ;; 393 398 "sparc64") … … 514 519 515 520 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 538 546 539 547 … … 569 577 570 578 case "$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) 572 580 prepare 573 581 build_target "$1" … … 584 592 build_target "ppc32" 585 593 build_target "ppc64" 594 build_target "riscv64" 586 595 build_target "sparc64" 587 596 ;; … … 597 606 build_target "ppc32" & 598 607 build_target "ppc64" & 608 build_target "riscv64" & 599 609 build_target "sparc64" & 600 610 wait … … 618 628 wait 619 629 630 build_target "riscv64" & 620 631 build_target "ppc64" & 632 wait 633 621 634 build_target "sparc64" & 622 635 wait
Note:
See TracChangeset
for help on using the changeset viewer.