scripts/build/arch/powerpc.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Sep 14 12:59:17 2011 +0200 (2011-09-14)
changeset 2676 af542a04bf69
parent 1634 186c71e3ceb0
child 2723 94e5cee905f2
permissions -rw-r--r--
cc/gcc: speed up the build a little bit

Even if the current process is highly parallel, crosstool-NG spends most
of its time in single-job steps on fast machines (with a 12-CPU system,
I approximate the parallel vs. non-parallel time to be in the order os
1 to 3; that is crostool-NG spends two-thirds of its time running
non-parallel jobs).

Some steps to build gcc can be paralleled, gaining a litle bit of time
on the whole compilation.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # Compute powerpc-specific values
     2 
     3 CT_DoArchTupleValues () {
     4     # The architecture part of the tuple, override only for 64-bit
     5     if [ "${CT_ARCH_64}" = "y" ]; then
     6         CT_TARGET_ARCH="powerpc64"
     7     fi
     8 
     9     CT_TARGET_SYS="gnu"
    10     case "${CT_ARCH_powerpc_ABI}" in
    11         "") ;;
    12         eabi) CT_TARGET_SYS="eabi";;
    13         spe)
    14             case "${CT_LIBC}" in
    15                 glibc|eglibc) CT_TARGET_SYS="gnuspe";;
    16                 *)            CT_TARGET_SYS="spe";
    17             esac
    18             ;;
    19     esac
    20 
    21     # Add extra flags for SPE if needed
    22     if [ "${CT_ARCH_powerpc_ABI_SPE}" = "y" ]; then
    23         CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
    24         CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
    25         CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
    26     fi
    27 }