aboutsummaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2014-05-11 23:43:52 +0200
committerYann E. MORIN" <yann.morin.1998@free.fr>2014-05-11 23:43:52 +0200
commitbcb36bb8dfdfbd953bce3faf137fa899210a6432 (patch)
treefcc47a9e6d94e13c14682cdee5b26615290142a8 /scripts/functions
parentf941e1bad5d971fe6f8efb1e2e6488f72d3b3c8b (diff)
downloadcrosstool-ng-bcb36bb8dfdfbd953bce3faf137fa899210a6432.tar.gz
crosstool-ng-bcb36bb8dfdfbd953bce3faf137fa899210a6432.tar.bz2
crosstool-ng-bcb36bb8dfdfbd953bce3faf137fa899210a6432.zip
scripts/functions: add target_endian_le and target_endian_be
We currently define target_endian_el and target_endian_eb to be the tuple extension depending on endianness, defined to be respectively 'el' or 'eb' according to the endianness. Some architecture do not use 'el' or 'eb', but use 'le' or 'be'. Provide that as well, as two new variables: target_endian_le and target_endian_be. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Cody P Schafer <dev@codyps.com>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions
index 345d8e3f..2e3878b2 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -1138,13 +1138,17 @@ CT_DoBuildTargetTuple() {
case "${CT_ARCH_ENDIAN}" in
big)
target_endian_eb=eb
+ target_endian_be=be
target_endian_el=
+ target_endian_le=
CT_ARCH_ENDIAN_CFLAG="-mbig-endian"
CT_ARCH_ENDIAN_LDFLAG="-Wl,-EB"
;;
little)
target_endian_eb=
+ target_endian_be=
target_endian_el=el
+ target_endian_le=le
CT_ARCH_ENDIAN_CFLAG="-mlittle-endian"
CT_ARCH_ENDIAN_LDFLAG="-Wl,-EL"
;;