Changeset 5828554 in mainline for tools/toolchain.sh


Ignore:
Timestamp:
2014-01-19T14:37:22Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf982ff
Parents:
2f591127 (diff), 476f62c (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

    r2f591127 r5828554  
    6262
    6363BASEDIR="`pwd`"
     64SRCDIR="$(readlink -f $(dirname "$0"))"
    6465BINUTILS="binutils-${BINUTILS_VERSION}${BINUTILS_RELEASE}.tar.bz2"
    6566GCC="gcc-${GCC_VERSION}.tar.bz2"
     
    154155        echo " ppc32      32-bit PowerPC"
    155156        echo " ppc64      64-bit PowerPC"
     157        echo " sparc32    SPARC V8"
    156158        echo " sparc64    SPARC V9"
    157159        echo " all        build all targets"
     
    377379                        HELENOS_TARGET="ppc64-helenos"
    378380                        ;;
     381                "sparc32")
     382                        LINUX_TARGET="sparc-leon3-linux-gnu"
     383                        HELENOS_TARGET="sparc-leon3-helenos"
     384                        ;;
    379385                "sparc64")
    380386                        LINUX_TARGET="sparc64-linux-gnu"
     
    440446        echo ">>> Applying patches"
    441447        for p in $BINUTILS_PATCHES; do
    442                 patch_sources "${BASEDIR}/${p}" 0 "binutils"
     448                patch_sources "${SRCDIR}/${p}" 0 "binutils"
    443449        done
    444450        for p in $GCC_PATCHES; do
    445                 patch_sources "${BASEDIR}/${p}" 0 "GCC"
     451                patch_sources "${SRCDIR}/${p}" 0 "GCC"
    446452        done
    447453        for p in $GDB_PATCHES; do
    448                 patch_sources "${BASEDIR}/${p}" 0 "GDB"
     454                patch_sources "${SRCDIR}/${p}" 0 "GDB"
    449455        done
    450456       
     
    554560
    555561case "$1" in
    556         amd64|arm32|ia32|ia64|mips32|mips32eb|mips64|ppc32|ppc64|sparc64)
     562        amd64|arm32|ia32|ia64|mips32|mips32eb|mips64|ppc32|ppc64|sparc32|sparc64)
    557563                prepare
    558564                build_target "$1"
     
    569575                build_target "ppc32"
    570576                build_target "ppc64"
     577                build_target "sparc32"
    571578                build_target "sparc64"
    572579                ;;
     
    582589                build_target "ppc32" &
    583590                build_target "ppc64" &
     591                build_target "sparc32" &
    584592                build_target "sparc64" &
    585593                wait
     
    604612               
    605613                build_target "ppc64" &
     614                build_target "sparc32" &
     615                wait
     616               
    606617                build_target "sparc64" &
    607618                wait
Note: See TracChangeset for help on using the changeset viewer.