Changes in tools/toolchain.sh [7e9fce6:baf8fbb] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    r7e9fce6 rbaf8fbb  
    5353EOF
    5454
    55 BINUTILS_VERSION="2.21.1"
    56 BINUTILS_RELEASE="a"
    57 GCC_VERSION="4.6.1"
    58 GDB_VERSION="7.3.1"
     55BINUTILS_VERSION="2.22"
     56BINUTILS_RELEASE=""
     57GCC_VERSION="4.7.1"
     58GDB_VERSION="7.4"
    5959
    6060BASEDIR="`pwd`"
    6161BINUTILS="binutils-${BINUTILS_VERSION}${BINUTILS_RELEASE}.tar.bz2"
    62 GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
    63 GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
    64 GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
     62GCC="gcc-${GCC_VERSION}.tar.bz2"
    6563GDB="gdb-${GDB_VERSION}.tar.bz2"
    6664
     
    151149        echo " sparc64    SPARC V9"
    152150        echo " all        build all targets"
    153         echo " parallel   same as 'all', but in parallel"
     151        echo " parallel   same as 'all', but all in parallel"
     152        echo " 2-way      same as 'all', but 2-way parallel"
    154153        echo
    155154        echo "The toolchain will be installed to the directory specified by"
     
    274273        GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/"
    275274       
    276         download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "bde820eac53fa3a8d8696667418557ad"
    277         download_fetch "${GCC_SOURCE}" "${GCC_CORE}" "0c0e7e35d2215e19de9c97efba507553"
    278         download_fetch "${GCC_SOURCE}" "${GCC_OBJC}" "cbf0d4b701827922cf37ba6a4ace0079"
    279         download_fetch "${GCC_SOURCE}" "${GCC_CPP}" "0d75ca7ca35b1e7f252223f9d23a6ad1"
    280         download_fetch "${GDB_SOURCE}" "${GDB}" "b89a5fac359c618dda97b88645ceab47"
     275        download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "ee0f10756c84979622b992a4a61ea3f5"
     276        download_fetch "${GCC_SOURCE}" "${GCC}" "933e6f15f51c031060af64a9e14149ff"
     277        download_fetch "${GDB_SOURCE}" "${GDB}" "95a9a8305fed4d30a30a6dc28ff9d060"
    281278}
    282279
     
    299296        echo ">>> Downloading tarballs"
    300297        source_check "${BASEDIR}/${BINUTILS}"
    301         source_check "${BASEDIR}/${GCC_CORE}"
    302         source_check "${BASEDIR}/${GCC_OBJC}"
    303         source_check "${BASEDIR}/${GCC_CPP}"
     298        source_check "${BASEDIR}/${GCC}"
    304299        source_check "${BASEDIR}/${GDB}"
    305300       
     
    316311       
    317312        unpack_tarball "${BASEDIR}/${BINUTILS}" "binutils"
    318         unpack_tarball "${BASEDIR}/${GCC_CORE}" "GCC Core"
    319         unpack_tarball "${BASEDIR}/${GCC_OBJC}" "Objective C"
    320         unpack_tarball "${BASEDIR}/${GCC_CPP}" "C++"
     313        unpack_tarball "${BASEDIR}/${GCC}" "GCC"
    321314        unpack_tarball "${BASEDIR}/${GDB}" "GDB"
    322315       
     
    326319       
    327320        change_title "binutils: configure (${PLATFORM})"
    328         CFLAGS=-Wno-error ./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --disable-nls
     321        CFLAGS=-Wno-error ./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --disable-nls --disable-werror
    329322        check_error $? "Error configuring binutils."
    330323       
     
    338331       
    339332        change_title "GCC: configure (${PLATFORM})"
    340         "${GCCDIR}/configure" "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --with-gnu-as --with-gnu-ld --disable-nls --disable-threads --enable-languages=c,objc,c++,obj-c++ --disable-multilib --disable-libgcj --without-headers --disable-shared --enable-lto
     333        "${GCCDIR}/configure" "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --with-gnu-as --with-gnu-ld --disable-nls --disable-threads --enable-languages=c,objc,c++,obj-c++ --disable-multilib --disable-libgcj --without-headers --disable-shared --enable-lto --disable-werror
    341334        check_error $? "Error configuring GCC."
    342335       
     
    378371        "arm32")
    379372                prepare
    380                 build_target "arm32" "arm-linux-gnu"
     373                build_target "arm32" "arm-linux-gnueabi"
    381374                ;;
    382375        "ia32")
     
    415408                prepare
    416409                build_target "amd64" "amd64-linux-gnu"
    417                 build_target "arm32" "arm-linux-gnu"
     410                build_target "arm32" "arm-linux-gnueabi"
    418411                build_target "ia32" "i686-pc-linux-gnu"
    419412                build_target "ia64" "ia64-pc-linux-gnu"
     
    428421                prepare
    429422                build_target "amd64" "amd64-linux-gnu" &
    430                 build_target "arm32" "arm-linux-gnu" &
     423                build_target "arm32" "arm-linux-gnueabi" &
    431424                build_target "ia32" "i686-pc-linux-gnu" &
    432425                build_target "ia64" "ia64-pc-linux-gnu" &
     
    439432                wait
    440433                ;;
     434        "2-way")
     435                prepare
     436                build_target "amd64" "amd64-linux-gnu" &
     437                build_target "arm32" "arm-linux-gnueabi" &
     438                wait
     439               
     440                build_target "ia32" "i686-pc-linux-gnu" &
     441                build_target "ia64" "ia64-pc-linux-gnu" &
     442                wait
     443               
     444                build_target "mips32" "mipsel-linux-gnu" &
     445                build_target "mips32eb" "mips-linux-gnu" &
     446                wait
     447               
     448                build_target "mips64" "mips64el-linux-gnu" &
     449                build_target "ppc32" "ppc-linux-gnu" &
     450                wait
     451               
     452                build_target "ppc64" "ppc64-linux-gnu" &
     453                build_target "sparc64" "sparc64-linux-gnu" &
     454                wait
     455                ;;
    441456        *)
    442457                show_usage
Note: See TracChangeset for help on using the changeset viewer.