scripts/build/arch/arm.sh
author Daniel Schultze <kinglag@gmail.com>
Thu Jan 16 14:55:23 2014 -0800 (2014-01-16)
changeset 3281 529a71ea091e
parent 3169 9d0b37f08a10
permissions -rw-r--r--
libc/glibc: adding patch for glibc-2.10.1 for make-3.82 and later

Make 3.82 broke makefiles that used implicit and explicit rules on the
same line.

This was a undocumented feature that broke many makefiles.

This patch removes the offending rule and replaces it with two separate rules.

Signed-off-by: Daniel Schultze <kinglag@gmail.com>
[yann.morin.1998@free.fr: make it a crosstool-ng patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <CAEsx0Y-PDK7g6XanR=GRWT-8efMX=qAuB4Ub7wakF5sH=tQGxA@mail.gmail.com>
Patchwork-Id: 311876
     1 # Compute ARM-specific values
     2 
     3 CT_DoArchTupleValues() {
     4     # The architecture part of the tuple:
     5     case "${CT_ARCH_BITNESS}" in
     6         32)
     7             CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX:-${target_endian_eb}}"
     8             ;;
     9         64)
    10             # ARM 64 (aka AArch64) is special
    11             [ "${CT_ARCH_BE}" = "y" ] && target_endian_eb="_be"
    12             CT_TARGET_ARCH="aarch64${CT_ARCH_SUFFIX:-${target_endian_eb}}"
    13             ;;
    14     esac
    15 
    16     # The system part of the tuple:
    17     case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
    18         *glibc,y)   CT_TARGET_SYS=gnueabi;;
    19         uClibc,y)   CT_TARGET_SYS=uclibcgnueabi;;
    20         *,y)        CT_TARGET_SYS=eabi;;
    21     esac
    22 
    23     # Set the default instruction set mode
    24     case "${CT_ARCH_ARM_MODE}" in
    25         arm)    ;;
    26         thumb)
    27             CT_ARCH_CC_CORE_EXTRA_CONFIG="--with-mode=thumb"
    28             CT_ARCH_CC_EXTRA_CONFIG="--with-mode=thumb"
    29 #            CT_ARCH_TARGET_CFLAGS="-mthumb"
    30             ;;
    31     esac
    32 
    33     if [ "${CT_ARCH_ARM_INTERWORKING}" = "y" ]; then
    34         CT_ARCH_TARGET_CFLAGS+=" -mthumb-interwork"
    35     fi
    36 
    37     if [ "${CT_ARCH_ARM_TUPLE_USE_EABIHF}" = "y" ]; then
    38         CT_TARGET_SYS="${CT_TARGET_SYS}hf"
    39     fi
    40 }