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>
This commit is contained in:
Yann E. MORIN" 2014-05-11 23:55:16 +02:00
parent bcb36bb8df
commit 12e1875557

View File

@ -1154,6 +1154,18 @@ CT_DoBuildTargetTuple() {
;; ;;
esac 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 # Build the default architecture tuple part
CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX}" CT_TARGET_ARCH="${CT_ARCH}${CT_ARCH_SUFFIX}"