scripts/build/arch/powerpc.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Dec 19 12:44:21 2009 +0100 (2009-12-19)
changeset 1663 e94f4ffddd1d
parent 1181 2e88d85d6ffc
child 2675 7c288c777455
permissions -rw-r--r--
scripts: check for, and warn about an unset CT_PREFIX_DIR

The user shall provide a directory to install the toolchain into.
If he/she does not, this is an error, and shall be detected properly,
rather than relying on failure down the road.

Thanks to "Pedro I. Sanchez" <psanchez@colcan.ca> for pointing out
the issue:
http://sourceware.org/ml/crossgcc/2009-12/msg00011.html
     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     # Add spe in the tuple if needed
    10     case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
    11         glibc,|eglibc,)   CT_TARGET_SYS=gnu;;
    12         glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
    13     esac
    14 
    15     # Add extra flags for SPE if needed
    16     if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
    17         CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
    18         CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
    19         CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
    20     fi
    21 }