Changeset e160bfe8 in mainline for tools/toolchain.sh


Ignore:
Timestamp:
2017-10-23T18:51:34Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
327f147
Parents:
31cca4f3 (diff), 367db39a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline (again) to fix build

Perhaps it wasn't so good idea to start merging mainline in these unstable times :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r31cca4f3 re160bfe8  
    6464GDB_VERSION="7.12.1"
    6565## GDB_PATCHES="toolchain-gdb-7.6.1.patch"
     66ISL_VERSION="0.18"
    6667
    6768BASEDIR="`pwd`"
     
    7071GCC="gcc-${GCC_VERSION}.tar.bz2"
    7172GDB="gdb-${GDB_VERSION}.tar.gz"
     73ISL="isl-${ISL_VERSION}.tar.bz2"
    7274
    7375REAL_INSTALL=true
    7476USE_HELENOS_TARGET=false
     77BUILD_ISL=false
    7578
    7679#
     
    97100       
    98101        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
    108117        else
    109118                echo " ${DEPENDENCY} found"
     
    237246        if [ ! -f "${FILE}" ] ; then
    238247                change_title "Downloading ${FILE}"
    239                 wget -c "${SOURCE}${FILE}"
     248                wget -c "${SOURCE}${FILE}" -O "${FILE}".part
    240249                check_error $? "Error downloading ${FILE}."
     250               
     251                mv "${FILE}".part "${FILE}"
    241252        fi
    242253       
     
    350361        GCC_SOURCE="ftp://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/"
    351362        GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/"
     363        ISL_SOURCE="http://isl.gforge.inria.fr/"
    352364       
    353365        download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "9e8340c96626b469a603c15c9d843727"
    354366        download_fetch "${GCC_SOURCE}" "${GCC}" "6bf56a2bca9dac9dbbf8e8d1036964a8"
    355367        download_fetch "${GDB_SOURCE}" "${GDB}" "06c8f40521ed65fe36ebc2be29b56942"
     368       
     369        if $BUILD_ISL ; then
     370                download_fetch "${ISL_SOURCE}" "${ISL}" "11436d6b205e516635b666090b94ab32"
     371        fi
    356372}
    357373
     
    423439        BINUTILSDIR="${WORKDIR}/binutils-${BINUTILS_VERSION}"
    424440        GCCDIR="${WORKDIR}/gcc-${GCC_VERSION}"
     441        ISLDIR="${WORKDIR}/isl-${ISL_VERSION}"
    425442        OBJDIR="${WORKDIR}/gcc-obj"
    426443        GDBDIR="${WORKDIR}/gdb-${GDB_VERSION}"
     
    436453        source_check "${BASEDIR}/${GCC}"
    437454        source_check "${BASEDIR}/${GDB}"
     455        if $BUILD_ISL ; then
     456                source_check "${BASEDIR}/${ISL}"
     457        fi
    438458       
    439459        echo ">>> Removing previous content"
     
    451471        unpack_tarball "${BASEDIR}/${GCC}" "GCC"
    452472        unpack_tarball "${BASEDIR}/${GDB}" "GDB"
     473        if $BUILD_ISL ; then
     474                unpack_tarball "${BASEDIR}/${ISL}" "isl"
     475                mv "${ISLDIR}" "${GCCDIR}"/isl
     476        fi
    453477       
    454478        echo ">>> Applying patches"
     
    471495                "--target=${TARGET}" \
    472496                "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" \
    473                 --disable-nls --disable-werror --enable-gold
     497                --disable-nls --disable-werror --enable-gold \
     498                --enable-deterministic-archives
    474499        check_error $? "Error configuring binutils."
    475500       
Note: See TracChangeset for help on using the changeset viewer.