Changeset 0f28387 in mainline
- Timestamp:
- 2017-10-03T16:54:50Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a273e
- Parents:
- b4a9f5d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
rb4a9f5d r0f28387 283 283 ORIGINAL="`pwd`" 284 284 285 mkdir -p "${OUTSIDE}" 286 285 287 cd "${OUTSIDE}" 286 288 check_error $? "Unable to change directory to ${OUTSIDE}." … … 443 445 444 446 echo ">>> Removing previous content" 445 $REAL_INSTALL && cleanup_dir "${PREFIX}"446 447 cleanup_dir "${WORKDIR}" 447 448 448 $REAL_INSTALL && create_dir "${PREFIX}" "destination directory"449 449 create_dir "${OBJDIR}" "GCC object directory" 450 450 … … 478 478 "--target=${TARGET}" \ 479 479 "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" \ 480 --disable-nls --disable-werror 480 --disable-nls --disable-werror --enable-gold 481 481 check_error $? "Error configuring binutils." 482 482 … … 486 486 487 487 change_title "binutils: install (${PLATFORM})" 488 if $REAL_INSTALL ; then 489 make install 490 else 491 make install "DESTDIR=${INSTALL_DIR}" 492 fi 488 make install "DESTDIR=${INSTALL_DIR}" 493 489 check_error $? "Error installing binutils." 494 490 … … 513 509 514 510 change_title "GCC: install (${PLATFORM})" 515 if $REAL_INSTALL ; then 516 PATH="${PATH}:${PREFIX}/bin" make install-gcc 517 else 518 PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install-gcc "DESTDIR=${INSTALL_DIR}" 519 fi 511 PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install-gcc "DESTDIR=${INSTALL_DIR}" 520 512 check_error $? "Error installing GCC." 521 513 … … 531 523 "--target=${TARGET}" \ 532 524 "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" \ 533 --enable-werror=no 525 --enable-werror=no --without-guile 534 526 check_error $? "Error configuring GDB." 535 527 … … 539 531 540 532 change_title "GDB: make (${PLATFORM})" 541 if $REAL_INSTALL ; then 542 PATH="${PATH}:${PREFIX}/bin" make install 543 else 544 PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install "DESTDIR=${INSTALL_DIR}" 545 fi 533 PATH="${PATH}:${INSTALL_DIR}/${PREFIX}/bin" make install "DESTDIR=${INSTALL_DIR}" 546 534 check_error $? "Error installing GDB." 547 535 fi 548 536 537 # Symlink clang and lld to the install path. 538 CLANG=`which clang 2> /dev/null || echo "/usr/bin/clang"` 539 LLD=`which ld.lld 2> /dev/null || echo "/usr/bin/ld.lld"` 540 541 ln -s $CLANG "${INSTALL_DIR}/${PREFIX}/bin/${TARGET}-clang" 542 ln -s $LLD "${INSTALL_DIR}/${PREFIX}/bin/${TARGET}-ld.lld" 543 544 if $REAL_INSTALL ; then 545 echo ">>> Moving to the destination directory." 546 cleanup_dir "${PREFIX}" 547 echo mv "${INSTALL_DIR}/${PREFIX}" "${PREFIX}" 548 mv "${INSTALL_DIR}/${PREFIX}" "${PREFIX}" 549 fi 549 550 550 551 cd "${BASEDIR}"
Note:
See TracChangeset
for help on using the changeset viewer.