From 72f1c0b405f8ccb43bd13f0e0fcc5f796a095379 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 20 Nov 2011 21:01:34 +0100 Subject: scripts/functions: use endian string in tests Signed-off-by: "Yann E. MORIN" 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" -- cgit v0.10.2-6-g49f6