Changeset 367db39a in mainline
- Timestamp:
- 2017-10-21T22:33:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8fbbe7, e160bfe8
- Parents:
- 5265c1eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/toolchain.sh
r5265c1eb r367db39a 64 64 GDB_VERSION="7.12.1" 65 65 ## GDB_PATCHES="toolchain-gdb-7.6.1.patch" 66 ISL_VERSION="0.18" 66 67 67 68 BASEDIR="`pwd`" … … 70 71 GCC="gcc-${GCC_VERSION}.tar.bz2" 71 72 GDB="gdb-${GDB_VERSION}.tar.gz" 73 ISL="isl-${ISL_VERSION}.tar.bz2" 72 74 73 75 REAL_INSTALL=true 74 76 USE_HELENOS_TARGET=false 77 BUILD_ISL=false 75 78 76 79 # … … 97 100 98 101 if [ "$RC" -ne "0" ] ; then 99 echo " ${DEPENDENCY} not found, too old or compiler error." 100 echo " Please recheck manually the source file \"${FNAME}.c\"." 101 echo " The compilation of the toolchain is probably going to fail," 102 echo " you have been warned." 103 echo 104 echo " ===== Compiler output =====" 105 cat "${FNAME}.log" 106 echo " ===========================" 107 echo 102 if [ "${DEPENDENCY}" == "isl" ]; then 103 BUILD_ISL=true 104 105 echo " isl not found. Will be downloaded and built with GCC." 106 else 107 echo " ${DEPENDENCY} not found, too old or compiler error." 108 echo " Please recheck manually the source file \"${FNAME}.c\"." 109 echo " The compilation of the toolchain is probably going to fail," 110 echo " you have been warned." 111 echo 112 echo " ===== Compiler output =====" 113 cat "${FNAME}.log" 114 echo " ===========================" 115 echo 116 fi 108 117 else 109 118 echo " ${DEPENDENCY} found" … … 352 361 GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/" 353 362 GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/" 363 ISL_SOURCE="http://isl.gforge.inria.fr/" 354 364 355 365 download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "9e8340c96626b469a603c15c9d843727" 356 366 download_fetch "${GCC_SOURCE}" "${GCC}" "6bf56a2bca9dac9dbbf8e8d1036964a8" 357 367 download_fetch "${GDB_SOURCE}" "${GDB}" "06c8f40521ed65fe36ebc2be29b56942" 368 369 if $BUILD_ISL ; then 370 download_fetch "${ISL_SOURCE}" "${ISL}" "11436d6b205e516635b666090b94ab32" 371 fi 358 372 } 359 373 … … 425 439 BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}" 426 440 GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}" 441 ISLDIR="${WORKDIR}/isl-${ISL_VERSION}" 427 442 OBJDIR="${WORKDIR}/gcc-obj" 428 443 GDBDIR="${WORKDIR}/gdb-${GDB_VERSION}" … … 438 453 source_check "${BASEDIR}/${GCC}" 439 454 source_check "${BASEDIR}/${GDB}" 455 if $BUILD_ISL ; then 456 source_check "${BASEDIR}/${ISL}" 457 fi 440 458 441 459 echo ">>> Removing previous content" … … 453 471 unpack_tarball "${BASEDIR}/${GCC}" "GCC" 454 472 unpack_tarball "${BASEDIR}/${GDB}" "GDB" 473 if $BUILD_ISL ; then 474 unpack_tarball "${BASEDIR}/${ISL}" "isl" 475 mv "${ISLDIR}" "${GCCDIR}"/isl 476 fi 455 477 456 478 echo ">>> Applying patches"
Note:
See TracChangeset
for help on using the changeset viewer.