summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2014-05-11 22:09:31 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2014-05-11 22:09:31 (GMT)
commitd0cc0b3a56b7ba0965370a79c968c489c4c59c5d (patch)
treeea6cfca9e7bf7d0a45f1e0190cef1f842039d71e
parentaaaea2987a55b796b3f640194249d24a2023f72e (diff)
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>
-rw-r--r--scripts/build/arch/mips.sh7
-rw-r--r--scripts/build/arch/sparc.sh5
2 files changed, 2 insertions, 10 deletions
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}"
}