scripts/build/arch/arm.sh
author "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
Mon Apr 16 15:25:36 2012 +0200 (2012-04-16)
changeset 2941 13e40098fffc
parent 1597 fa8f3ab724f9
child 3158 1161ea79915b
permissions -rw-r--r--
cc/gcc: update Linaro GCC revisions to 2012.04

Update Linaro GCC with the latest available revisions.

The 4.7 revision is also released, but the infrastructure is not yet ready for
it in CT-NG.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
     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 }