scripts/build/arch/sh.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Mar 07 11:20:27 2009 +0000 (2009-03-07)
changeset 1241 d9bcfb2d7369
parent 903 9fb0f81b4416
child 1936 0c55a28f61cd
permissions -rw-r--r--
Re-diff the binutils-2.18.50.0.4 patches.
Breakage spotted by "Sander Visser" <Sander.Visser@evidente.se>

/trunk/patches/binutils/2.18.50.0.4/110-ld-makefile-path.patch | 19 12 7 0 ++++++---
/trunk/patches/binutils/2.18.50.0.4/130-i386-no-divide-comment.patch | 7 6 1 0 +++
/trunk/patches/binutils/2.18.50.0.4/100-arm-uclibcgnueabi.patch | 21 13 8 0 ++++++----
/trunk/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch | 15 10 5 0 +++++--
4 files changed, 41 insertions(+), 21 deletions(-)
     1 # Compute sh-specific values
     2 
     3 CT_DoArchTupleValues () {
     4     # The architecture part of the tuple:
     5     CT_TARGET_ARCH="${CT_ARCH_SH_VARIANT}${target_endian_eb}"
     6 
     7     # gcc ./configure flags
     8     CT_ARCH_WITH_ARCH=
     9     CT_ARCH_WITH_ABI=
    10     CT_ARCH_WITH_CPU=
    11     CT_ARCH_WITH_TUNE=
    12     CT_ARCH_WITH_FPU=
    13     CT_ARCH_WITH_FLOAT=
    14 
    15     # Endianness stuff
    16     case "${CT_ARCH_BE},${CT_ARCH_LE}" in
    17         y,) CT_ARCH_ENDIAN_CFLAG=-mb;;
    18         ,y) CT_ARCH_ENDIAN_CFLAG=-ml;;
    19     esac
    20 
    21     # CFLAGS
    22     case "${CT_ARCH_SH_VARIENT}" in
    23         sh3)    CT_ARCH_ARCH_CFLAG=-m3;;
    24         sh4*)
    25             case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in
    26                 y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";;
    27                 ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";;
    28             esac
    29             ;;
    30     esac
    31     CT_ARCH_FLOAT_CFLAG=
    32 }