From d0cc0b3a56b7ba0965370a79c968c489c4c59c5d Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 12 May 2014 00:09:31 +0200 Subject: 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" diff --git a/scripts/build/arch/mips.sh b/scripts/build/arch/mips.sh index 97a077f..4d732be 100644 --- a/scripts/build/arch/mips.sh +++ b/scripts/build/arch/mips.sh @@ -1,13 +1,8 @@ # Compute MIPS-specific values CT_DoArchTupleValues() { - local _64 - # The architecture part of the tuple - if [ "${CT_ARCH_64}" = "y" ]; then - _64="64" - fi - CT_TARGET_ARCH="${CT_ARCH}${_64}${CT_ARCH_SUFFIX:-${target_endian_el}}" + CT_TARGET_ARCH="${CT_ARCH}${target_bits_64}${CT_ARCH_SUFFIX:-${target_endian_el}}" # Override CFLAGS for endianness: case "${CT_ARCH_ENDIAN}" in diff --git a/scripts/build/arch/sparc.sh b/scripts/build/arch/sparc.sh index 6fa3877..e3e7491 100644 --- a/scripts/build/arch/sparc.sh +++ b/scripts/build/arch/sparc.sh @@ -1,8 +1,5 @@ # Compute sparc-specific values CT_DoArchTupleValues() { # That's the only thing to override - if [ "${CT_ARCH_64}" = "y" ]; then - CT_TARGET_ARCH="sparc64${CT_ARCH_SUFFIX}" - fi - + CT_TARGET_ARCH="sparc${target_bits_64}${CT_ARCH_SUFFIX}" } -- cgit v0.10.2-6-g49f6