summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-11-20 20:01:34 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-11-20 20:01:34 (GMT)
commit72f1c0b405f8ccb43bd13f0e0fcc5f796a095379 (patch)
treefe537a1ea3a45dc49a1fbbdd19feb059c73c4a8a /scripts/functions
parent2df96537877d29adedd6676321c7d8fb52059f75 (diff)
scripts/functions: use endian string in tests
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions
index 46955a8..2f15e3c 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -950,13 +950,15 @@ CT_DoConfigSub() {
# sample saving sequence.
CT_DoBuildTargetTuple() {
# Set the endianness suffix, and the default endianness gcc option
- case "${CT_ARCH_BE},${CT_ARCH_LE}" in
- y,) target_endian_eb=eb
+ case "${CT_ARCH_ENDIAN}" in
+ big)
+ target_endian_eb=eb
target_endian_el=
CT_ARCH_ENDIAN_CFLAG="-mbig-endian"
CT_ARCH_ENDIAN_LDFLAG="-EB"
;;
- ,y) target_endian_eb=
+ little)
+ target_endian_eb=
target_endian_el=el
CT_ARCH_ENDIAN_CFLAG="-mlittle-endian"
CT_ARCH_ENDIAN_LDFLAG="-EL"