# HG changeset patch # User "Yann E. MORIN" # Date 1399844632 -7200 # Node ID 78af1c99bc6d438e1e8e07dd00624a592f3de925 # Parent 283cebef70613ade5e8b903073e5cf08b794bf70 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 -r 283cebef7061 -r 78af1c99bc6d scripts/functions --- a/scripts/functions Sun May 11 23:31:54 2014 +0200 +++ b/scripts/functions Sun May 11 23:43:52 2014 +0200 @@ -1138,13 +1138,17 @@ 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" ;;