scripts/functions: add target_endian_le and target_endian_be
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Sun May 11 23:43:52 2014 +0200 (2014-05-11)
changeset 332078af1c99bc6d
parent 3319 283cebef7061
child 3321 8a753e6c5621
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" <yann.morin.1998@free.fr>
Cc: Cody P Schafer <dev@codyps.com>
scripts/functions
     1.1 --- a/scripts/functions	Sun May 11 23:31:54 2014 +0200
     1.2 +++ b/scripts/functions	Sun May 11 23:43:52 2014 +0200
     1.3 @@ -1138,13 +1138,17 @@
     1.4      case "${CT_ARCH_ENDIAN}" in
     1.5          big)
     1.6              target_endian_eb=eb
     1.7 +            target_endian_be=be
     1.8              target_endian_el=
     1.9 +            target_endian_le=
    1.10              CT_ARCH_ENDIAN_CFLAG="-mbig-endian"
    1.11              CT_ARCH_ENDIAN_LDFLAG="-Wl,-EB"
    1.12              ;;
    1.13          little)
    1.14              target_endian_eb=
    1.15 +            target_endian_be=
    1.16              target_endian_el=el
    1.17 +            target_endian_le=le
    1.18              CT_ARCH_ENDIAN_CFLAG="-mlittle-endian"
    1.19              CT_ARCH_ENDIAN_LDFLAG="-Wl,-EL"
    1.20              ;;