scripts/build/arch/arm.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 17 17:56:22 2011 +0200 (2011-07-17)
changeset 2889 f3b2199620f1
parent 1597 fa8f3ab724f9
child 3158 1161ea79915b
permissions -rw-r--r--
cc/gcc: pass the install prefix to the core passes

Currently, the discrimination on the core compilers prefixes depends on
the type of core compiler to build.

This is not correct, and the caller of the core backend should specify
the prefix.

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
antony@2563
    14
    # Set the default instruction 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
}