For those architectures that support both endianness, some default to big endian, others default to little endian.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Aug 30 19:49:21 2007 +0000 (2007-08-30)
changeset 34710d6514f4f94
parent 346 33e5e62eeee7
child 348 9fcb5046b4b5
For those architectures that support both endianness, some default to big endian, others default to little endian.
Make this possible in the target selection menu.
config/target.in
     1.1 --- a/config/target.in	Thu Aug 30 19:22:15 2007 +0000
     1.2 +++ b/config/target.in	Thu Aug 30 19:49:21 2007 +0000
     1.3 @@ -20,11 +20,13 @@
     1.4      bool
     1.5      prompt "arm"
     1.6      select ARCH_SUPPORTS_BOTH_ENDIAN
     1.7 +    select ARCH_DEFAULT_BE
     1.8  
     1.9  config ARCH_MIPS
    1.10      bool
    1.11      prompt "mips"
    1.12      select ARCH_SUPPORTS_BOTH_ENDIAN
    1.13 +    select ARCH_DEFAULT_LE
    1.14  
    1.15  config ARCH_x86
    1.16      bool
    1.17 @@ -40,10 +42,20 @@
    1.18      bool
    1.19      default n
    1.20  
    1.21 +config ARCH_DEFAULT_BE
    1.22 +    bool
    1.23 +    default n
    1.24 +
    1.25 +config ARCH_DEFAULT_LE
    1.26 +    bool
    1.27 +    default n
    1.28 +
    1.29  choice
    1.30      bool
    1.31      prompt "Endianness:"
    1.32      depends on ARCH_SUPPORTS_BOTH_ENDIAN
    1.33 +    default ARCH_BE if ARCH_DEFAULT_BE
    1.34 +    default ARCH_LE if ARCH_DEFAULT_LE
    1.35  
    1.36  config ARCH_BE
    1.37      bool