From bcb36bb8dfdfbd953bce3faf137fa899210a6432 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 11 May 2014 23:43:52 +0200 Subject: 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" Cc: Cody P Schafer diff --git a/scripts/functions b/scripts/functions index 345d8e3..2e3878b 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" ;; -- cgit v0.10.2-6-g49f6