From 0056e55e74e3aacc16cdd0f06e23e1b6a332f106 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 20 Nov 2011 21:05:36 +0100 Subject: [PATCH] arch/sh: use endian string in tests Signed-off-by: "Yann E. MORIN" --- scripts/build/arch/sh.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build/arch/sh.sh b/scripts/build/arch/sh.sh index 36779639..c7ac4923 100644 --- a/scripts/build/arch/sh.sh +++ b/scripts/build/arch/sh.sh @@ -13,9 +13,9 @@ CT_DoArchTupleValues () { CT_ARCH_WITH_FLOAT= # Endianness stuff - case "${CT_ARCH_BE},${CT_ARCH_LE}" in - y,) CT_ARCH_ENDIAN_CFLAG=-mb;; - ,y) CT_ARCH_ENDIAN_CFLAG=-ml;; + case "${CT_ARCH_ENDIAN}" in + big) CT_ARCH_ENDIAN_CFLAG=-mb;; + little) CT_ARCH_ENDIAN_CFLAG=-ml;; esac # CFLAGS