Changeset 75b24cd in mainline
- Timestamp:
- 2017-05-04T22:30:19Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b14d9f9
- Parents:
- d2bd00f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
rd2bd00f0 r75b24cd 123 123 124 124 check_error() { 125 if [ "$1" -ne "0" ] ; then125 if [ "$1" -ne "0" ] ; then 126 126 echo 127 127 echo "Script failed: $2" … … 235 235 CHECKSUM="$3" 236 236 237 if [ ! -f "${FILE}" ] ; then237 if [ ! -f "${FILE}" ] ; then 238 238 change_title "Downloading ${FILE}" 239 239 wget -c "${SOURCE}${FILE}" … … 247 247 FILE="$1" 248 248 249 if [ ! -f "${FILE}" ] ; then249 if [ ! -f "${FILE}" ] ; then 250 250 echo 251 251 echo "File ${FILE} not found." … … 258 258 DIR="$1" 259 259 260 if [ -d "${DIR}" ] ; then260 if [ -d "${DIR}" ] ; then 261 261 change_title "Removing ${DIR}" 262 262 echo " >>> Removing ${DIR}" … … 408 408 build_target() { 409 409 PLATFORM="$1" 410 410 411 # This sets the *_TARGET variables 411 412 set_target_from_platform "$PLATFORM" 412 if $USE_HELENOS_TARGET ; then413 if $USE_HELENOS_TARGET ; then 413 414 TARGET="$HELENOS_TARGET" 414 415 else … … 429 430 fi 430 431 431 if $USE_HELENOS_TARGET ; then432 if $USE_HELENOS_TARGET ; then 432 433 PREFIX="${CROSS_HELENOS_PREFIX}/${PLATFORM}" 433 434 else … … 458 459 459 460 echo ">>> Applying patches" 460 for p in $BINUTILS_PATCHES ; do461 for p in $BINUTILS_PATCHES ; do 461 462 patch_sources "${SRCDIR}/${p}" 0 "binutils" 462 463 done 463 for p in $GCC_PATCHES ; do464 for p in $GCC_PATCHES ; do 464 465 patch_sources "${SRCDIR}/${p}" 0 "GCC" 465 466 done 466 for p in $GDB_PATCHES ; do467 for p in $GDB_PATCHES ; do 467 468 patch_sources "${SRCDIR}/${p}" 0 "GDB" 468 469 done … … 484 485 485 486 change_title "binutils: install (${PLATFORM})" 486 if $REAL_INSTALL ; then487 if $REAL_INSTALL ; then 487 488 make install 488 489 else … … 511 512 512 513 change_title "GCC: install (${PLATFORM})" 513 if $REAL_INSTALL ; then514 if $REAL_INSTALL ; then 514 515 PATH="${PATH}:${PREFIX}/bin" make install-gcc 515 516 else … … 556 557 } 557 558 558 while [ "$#" -gt 1 ] ; do559 while [ "$#" -gt 1 ] ; do 559 560 case "$1" in 560 561 --no-install) … … 572 573 done 573 574 574 if [ "$#" -lt "1" ] ; then575 if [ "$#" -lt "1" ] ; then 575 576 show_usage 576 577 fi
Note:
See TracChangeset
for help on using the changeset viewer.