diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2014-05-11 23:55:16 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2014-05-11 23:55:16 +0200 |
commit | 12e18755579acff969b032b67dba3a53d6708f40 (patch) | |
tree | c30ea3e5e8f00aae01ec3e2ebfbac288afd47a56 | |
parent | bcb36bb8dfdfbd953bce3faf137fa899210a6432 (diff) | |
download | crosstool-ng-12e18755579acff969b032b67dba3a53d6708f40.tar.gz crosstool-ng-12e18755579acff969b032b67dba3a53d6708f40.tar.bz2 crosstool-ng-12e18755579acff969b032b67dba3a53d6708f40.zip |
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/functions | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions index 2e3878b2..b15601af 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}" |