scripts/build/arch/powerpc.sh
changeset 1634 186c71e3ceb0
parent 1181 2e88d85d6ffc
child 2675 7c288c777455
     1.1 --- a/scripts/build/arch/powerpc.sh	Sat Jan 31 17:39:35 2009 +0000
     1.2 +++ b/scripts/build/arch/powerpc.sh	Tue Nov 17 11:33:59 2009 +0100
     1.3 @@ -1,3 +1,21 @@
     1.4  # Compute powerpc-specific values
     1.5  
     1.6 -. "${CT_LIB_DIR}/scripts/build/arch/powerpc-powerpc64.sh-common"
     1.7 +CT_DoArchTupleValues () {
     1.8 +    # The architecture part of the tuple, override only for 64-bit
     1.9 +    if [ "${CT_ARCH_64}" = "y" ]; then
    1.10 +        CT_TARGET_ARCH="powerpc64"
    1.11 +    fi
    1.12 +
    1.13 +    # Add spe in the tuple if needed
    1.14 +    case "${CT_LIBC},${CT_ARCH_POWERPC_SPE}" in
    1.15 +        glibc,|eglibc,)   CT_TARGET_SYS=gnu;;
    1.16 +        glibc,y|eglibc,y) CT_TARGET_SYS=gnuspe;;
    1.17 +    esac
    1.18 +
    1.19 +    # Add extra flags for SPE if needed
    1.20 +    if [ "${CT_ARCH_POWERPC_SPE}" = "y" ]; then
    1.21 +        CT_ARCH_TARGET_CFLAGS="-mabi=spe -mspe"
    1.22 +        CT_ARCH_CC_CORE_EXTRA_CONFIG="--enable-e500_double"
    1.23 +        CT_ARCH_CC_EXTRA_CONFIG="--enable-e500_double"
    1.24 +    fi
    1.25 +}