scripts/build/arch/arm.sh
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Thu Jan 10 00:11:17 2013 +0100 (2013-01-10)
changeset 3158 1161ea79915b
parent 2563 e17f35b05539
child 3169 9d0b37f08a10
permissions -rw-r--r--
arch/arm: add option to use *eabihf tuples

Toolchains that use the hard-float ABI now are to be denoted by a tuple
ending in *eabihf, while the prevbious *eabi is now an indication that
the toolchain uses the softfloat ABI.

This is purely a cosmetic thing, for distros to differentiate their
hardfloat-ABI ports from their softfloat-ABI ports.

(note: softfloat ABI does not mean that it is using softfloats; it can
be using hardfloat instructions, but using the softfloat ABI).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 # Compute ARM-specific values
     2 
     3 CT_DoArchTupleValues() {
     4     # The architecture part of the tuple:
     5     CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}"
     6 
     7     # The system part of the tuple:
     8     case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
     9         *glibc,y)   CT_TARGET_SYS=gnueabi;;
    10         uClibc,y)   CT_TARGET_SYS=uclibcgnueabi;;
    11         *,y)        CT_TARGET_SYS=eabi;;
    12     esac
    13 
    14     # Set the default instruction set mode
    15     case "${CT_ARCH_ARM_MODE}" in
    16         arm)    ;;
    17         thumb)
    18             CT_ARCH_CC_CORE_EXTRA_CONFIG="--with-mode=thumb"
    19             CT_ARCH_CC_EXTRA_CONFIG="--with-mode=thumb"
    20 #            CT_ARCH_TARGET_CFLAGS="-mthumb"
    21             ;;
    22     esac
    23 
    24     if [ "${CT_ARCH_ARM_INTERWORKING}" = "y" ]; then
    25         CT_ARCH_TARGET_CFLAGS+=" -mthumb-interwork"
    26     fi
    27 
    28     if [ "${CT_ARCH_ARM_TUPLE_USE_EABIHF}" = "y" ]; then
    29         CT_TARGET_SYS="${CT_TARGET_SYS}hf"
    30     fi
    31 }