summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2014-05-11 21:55:16 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2014-05-11 21:55:16 (GMT)
commit12e18755579acff969b032b67dba3a53d6708f40 (patch)
treec30ea3e5e8f00aae01ec3e2ebfbac288afd47a56
parentbcb36bb8dfdfbd953bce3faf137fa899210a6432 (diff)
scripts/functions: introduce target_bits_32 and target_bits_64 variables
These variables behave the same for bitness as their counterparts do for endianness: they are defined to the appropriate bitness. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Cody P Schafer <dev@codyps.com>
-rw-r--r--scripts/functions12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions
index 2e3878b..b15601a 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -1154,6 +1154,18 @@ CT_DoBuildTargetTuple() {
;;
esac
+ # Set the bitness suffix
+ case "${CT_ARCH_BITNESS}" in
+ 32)
+ target_bits_32=32
+ target_bits_64=
+ ;;
+ 64)
+ target_bits_32=
+ target_bits_64=64
+ ;;
+ esac
+
# Build the default architecture tuple part
CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX}"