arch: use the newly introduced target_bits_64
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Mon May 12 00:09:31 2014 +0200 (2014-05-12)
changeset 332399029fac116b
parent 3322 eb13867a034c
child 3324 1eea25c0bfe7
arch: use the newly introduced target_bits_64

Convert MIPS and Sparc over to using the new target_bits_64 variable.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
scripts/build/arch/mips.sh
scripts/build/arch/sparc.sh
     1.1 --- a/scripts/build/arch/mips.sh	Mon May 12 00:02:13 2014 +0200
     1.2 +++ b/scripts/build/arch/mips.sh	Mon May 12 00:09:31 2014 +0200
     1.3 @@ -1,13 +1,8 @@
     1.4  # Compute MIPS-specific values
     1.5  
     1.6  CT_DoArchTupleValues() {
     1.7 -    local _64
     1.8 -
     1.9      # The architecture part of the tuple
    1.10 -    if [ "${CT_ARCH_64}" = "y" ]; then
    1.11 -        _64="64"
    1.12 -    fi
    1.13 -    CT_TARGET_ARCH="${CT_ARCH}${_64}${CT_ARCH_SUFFIX:-${target_endian_el}}"
    1.14 +    CT_TARGET_ARCH="${CT_ARCH}${target_bits_64}${CT_ARCH_SUFFIX:-${target_endian_el}}"
    1.15  
    1.16      # Override CFLAGS for endianness:
    1.17      case "${CT_ARCH_ENDIAN}" in
     2.1 --- a/scripts/build/arch/sparc.sh	Mon May 12 00:02:13 2014 +0200
     2.2 +++ b/scripts/build/arch/sparc.sh	Mon May 12 00:09:31 2014 +0200
     2.3 @@ -1,8 +1,5 @@
     2.4  # Compute sparc-specific values
     2.5  CT_DoArchTupleValues() {
     2.6      # That's the only thing to override
     2.7 -    if [ "${CT_ARCH_64}" = "y" ]; then
     2.8 -        CT_TARGET_ARCH="sparc64${CT_ARCH_SUFFIX}"
     2.9 -    fi
    2.10 -
    2.11 +    CT_TARGET_ARCH="sparc${target_bits_64}${CT_ARCH_SUFFIX}"
    2.12  }