scripts/build/arch/powerpc.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jan 03 23:40:22 2011 +0100 (2011-01-03)
changeset 2267 7af68e6083aa
parent 1181 2e88d85d6ffc
child 2675 7c288c777455
permissions -rw-r--r--
libc-glibc: remove 2.3.6

This is an obsolete version which is no longer used by any sample (the only
user, the ia64 sample, has been removed).

It also makes the code path a bit complex, with twists just to accomodate
that version. Removing the version will make those twists go away, and
will ease commonalisation of glibc and eglibc in the future (hopefully!).

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