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


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/toolchain.sh

    rbaf8fbb r7e9fce6  
    5353EOF
    5454
    55 BINUTILS_VERSION="2.22"
    56 BINUTILS_RELEASE=""
    57 GCC_VERSION="4.7.1"
    58 GDB_VERSION="7.4"
     55BINUTILS_VERSION="2.21.1"
     56BINUTILS_RELEASE="a"
     57GCC_VERSION="4.6.1"
     58GDB_VERSION="7.3.1"
    5959
    6060BASEDIR="`pwd`"
    6161BINUTILS="binutils-${BINUTILS_VERSION}${BINUTILS_RELEASE}.tar.bz2"
    62 GCC="gcc-${GCC_VERSION}.tar.bz2"
     62GCC_CORE="gcc-core-${GCC_VERSION}.tar.bz2"
     63GCC_OBJC="gcc-objc-${GCC_VERSION}.tar.bz2"
     64GCC_CPP="gcc-g++-${GCC_VERSION}.tar.bz2"
    6365GDB="gdb-${GDB_VERSION}.tar.bz2"
    6466
     
    149151        echo " sparc64    SPARC V9"
    150152        echo " all        build all targets"
    151         echo " parallel   same as 'all', but all in parallel"
    152         echo " 2-way      same as 'all', but 2-way parallel"
     153        echo " parallel   same as 'all', but in parallel"
    153154        echo
    154155        echo "The toolchain will be installed to the directory specified by"
     
    273274        GDB_SOURCE="ftp://ftp.gnu.org/gnu/gdb/"
    274275       
    275         download_fetch "${BINUTILS_SOURCE}" "${BINUTILS}" "ee0f10756c84979622b992a4a61ea3f5"
    276         download_fetch "${GCC_SOURCE}" "${GCC}" "933e6f15f51c031060af64a9e14149ff"
    277         download_fetch "${GDB_SOURCE}" "${GDB}" "95a9a8305fed4d30a30a6dc28ff9d060"
     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"
    278281}
    279282
     
    296299        echo ">>> Downloading tarballs"
    297300        source_check "${BASEDIR}/${BINUTILS}"
    298         source_check "${BASEDIR}/${GCC}"
     301        source_check "${BASEDIR}/${GCC_CORE}"
     302        source_check "${BASEDIR}/${GCC_OBJC}"
     303        source_check "${BASEDIR}/${GCC_CPP}"
    299304        source_check "${BASEDIR}/${GDB}"
    300305       
     
    311316       
    312317        unpack_tarball "${BASEDIR}/${BINUTILS}" "binutils"
    313         unpack_tarball "${BASEDIR}/${GCC}" "GCC"
     318        unpack_tarball "${BASEDIR}/${GCC_CORE}" "GCC Core"
     319        unpack_tarball "${BASEDIR}/${GCC_OBJC}" "Objective C"
     320        unpack_tarball "${BASEDIR}/${GCC_CPP}" "C++"
    314321        unpack_tarball "${BASEDIR}/${GDB}" "GDB"
    315322       
     
    319326       
    320327        change_title "binutils: configure (${PLATFORM})"
    321         CFLAGS=-Wno-error ./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --disable-nls --disable-werror
     328        CFLAGS=-Wno-error ./configure "--target=${TARGET}" "--prefix=${PREFIX}" "--program-prefix=${TARGET}-" --disable-nls
    322329        check_error $? "Error configuring binutils."
    323330       
     
    331338       
    332339        change_title "GCC: configure (${PLATFORM})"
    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
     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
    334341        check_error $? "Error configuring GCC."
    335342       
     
    371378        "arm32")
    372379                prepare
    373                 build_target "arm32" "arm-linux-gnueabi"
     380                build_target "arm32" "arm-linux-gnu"
    374381                ;;
    375382        "ia32")
     
    408415                prepare
    409416                build_target "amd64" "amd64-linux-gnu"
    410                 build_target "arm32" "arm-linux-gnueabi"
     417                build_target "arm32" "arm-linux-gnu"
    411418                build_target "ia32" "i686-pc-linux-gnu"
    412419                build_target "ia64" "ia64-pc-linux-gnu"
     
    421428                prepare
    422429                build_target "amd64" "amd64-linux-gnu" &
    423                 build_target "arm32" "arm-linux-gnueabi" &
     430                build_target "arm32" "arm-linux-gnu" &
    424431                build_target "ia32" "i686-pc-linux-gnu" &
    425432                build_target "ia64" "ia64-pc-linux-gnu" &
     
    432439                wait
    433440                ;;
    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                 ;;
    456441        *)
    457442                show_usage
Note: See TracChangeset for help on using the changeset viewer.