scripts/build/arch/powerpc.sh
changeset 903 9fb0f81b4416
parent 898 fe3eda71a9d0
child 964 0535f7bf1069
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/build/arch/powerpc.sh	Sun Oct 05 15:32:00 2008 +0000
     1.3 @@ -0,0 +1,22 @@
     1.4 +# Compute powerpc-specific values
     1.5 +
     1.6 +CT_DoArchValues () {
     1.7 +    # The architecture part of the tuple:
     1.8 +    CT_TARGET_ARCH="${CT_ARCH}"
     1.9 +
    1.10 +    # The kernel ARCH:
    1.11 +    CT_KERNEL_ARCH=powerpc
    1.12 +
    1.13 +    # Add spe in the tuplet 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 +}