Changeset c2a6983 in mainline for tools/toolchain.sh


Ignore:
Timestamp:
2013-10-13T20:59:33Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
12d6c98
Parents:
820104d (diff), 39bcc99 (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 changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r820104d rc2a6983  
    3636        GCC_GMP_VERSION_NUM(__GNU_MP_VERSION, __GNU_MP_VERSION_MINOR, __GNU_MP_VERSION_PATCHLEVEL)
    3737
    38 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
     38#if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4, 3, 2)
    3939        choke me
    4040#endif
     
    5858GCC_VERSION="4.8.1"
    5959GCC_PATCHES="toolchain-gcc-4.8.1-targets.patch toolchain-gcc-4.8.1-headers.patch"
    60 GDB_VERSION="7.6"
     60GDB_VERSION="7.6.1"
    6161GDB_PATCHES="toolchain-gdb-7.6.patch"
    6262
     
    273273}
    274274
     275check_dirs() {
     276        OUTSIDE="$1"
     277        BASE="$2"
     278        ORIGINAL="`pwd`"
     279       
     280        cd "${OUTSIDE}"
     281        check_error $? "Unable to change directory to ${OUTSIDE}."
     282        ABS_OUTSIDE="`pwd`"
     283       
     284        cd "${BASE}"
     285        check_error $? "Unable to change directory to ${BASE}."
     286        ABS_BASE="`pwd`"
     287       
     288        cd "${ORIGINAL}"
     289        check_error $? "Unable to change directory to ${ORIGINAL}."
     290       
     291        BASE_LEN="${#ABS_BASE}"
     292        OUTSIDE_TRIM="${ABS_OUTSIDE:0:${BASE_LEN}}"
     293       
     294        if [ "${OUTSIDE_TRIM}" == "${ABS_BASE}" ] ; then
     295                echo
     296                echo "CROSS_PREFIX cannot reside within the working directory."
     297               
     298                exit 5
     299        fi
     300}
     301
    275302unpack_tarball() {
    276303        FILE="$1"
     
    307334        download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "33adb18c3048d057ac58d07a3f1adb38"
    308335        download_fetch "${GCC_SOURCE}" "${GCC}" "3b2386c114cd74185aa3754b58a79304"
    309         download_fetch "${GDB_SOURCE}" "${GDB}" "fda57170e4d11cdde74259ca575412a8"
     336        download_fetch "${GDB_SOURCE}" "${GDB}" "fbc4dab4181e6e9937075b43a4ce2732"
    310337}
    311338
     
    398425        $REAL_INSTALL && create_dir "${PREFIX}" "destination directory"
    399426        create_dir "${OBJDIR}" "GCC object directory"
     427       
     428        check_dirs "${PREFIX}" "${WORKDIR}"
    400429       
    401430        echo ">>> Unpacking tarballs"
Note: See TracChangeset for help on using the changeset viewer.