scripts/build/arch/arm.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 1596 ca1bf632da51
child 2563 e17f35b05539
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@383
     1
# Compute ARM-specific values
yann@383
     2
yann@964
     3
CT_DoArchTupleValues() {
yann@383
     4
    # The architecture part of the tuple:
yann@383
     5
    CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}"
yann@383
     6
yann@385
     7
    # The system part of the tuple:
yann@385
     8
    case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
yann@787
     9
        *glibc,y)   CT_TARGET_SYS=gnueabi;;
yann@385
    10
        uClibc,y)   CT_TARGET_SYS=uclibcgnueabi;;
yann@1591
    11
        *,y)        CT_TARGET_SYS=eabi;;
yann@385
    12
    esac
yann@1596
    13
yann@1596
    14
    # Set the default instrcution set mode
yann@1596
    15
    case "${CT_ARCH_ARM_MODE}" in
yann@1596
    16
        arm)    ;;
yann@1596
    17
        thumb)
yann@1596
    18
            CT_ARCH_CC_CORE_EXTRA_CONFIG="--with-mode=thumb"
yann@1596
    19
            CT_ARCH_CC_EXTRA_CONFIG="--with-mode=thumb"
yann@1596
    20
#            CT_ARCH_TARGET_CFLAGS="-mthumb"
yann@1596
    21
            ;;
yann@1596
    22
    esac
yann@1597
    23
yann@1597
    24
    if [ "${CT_ARCH_ARM_INTERWORKING}" = "y" ]; then
yann@1597
    25
        CT_ARCH_TARGET_CFLAGS+=" -mthumb-interwork"
yann@1597
    26
    fi
yann@383
    27
}