Don't prompt for endianness not suppoted by selected architecture.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Apr 11 17:51:31 2007 +0000 (2007-04-11)
changeset 352dce00870893
parent 34 fbdc53e2ee3e
child 36 776370226eaf
Don't prompt for endianness not suppoted by selected architecture.
Change suggested by Robert P. J. DAY <rpjday@mindspring.com>.
config/target.in
     1.1 --- a/config/target.in	Wed Apr 11 17:43:38 2007 +0000
     1.2 +++ b/config/target.in	Wed Apr 11 17:51:31 2007 +0000
     1.3 @@ -12,21 +12,35 @@
     1.4  config ARCH_ARM
     1.5      bool
     1.6      prompt "arm"
     1.7 +    select ARCH_SUPPORTS_BE
     1.8 +    select ARCH_SUPPORTS_LE
     1.9  
    1.10  config ARCH_MIPS
    1.11      bool
    1.12      prompt "mips"
    1.13 +    select ARCH_SUPPORTS_BE
    1.14 +    select ARCH_SUPPORTS_LE
    1.15  
    1.16  config ARCH_x86
    1.17      bool
    1.18      prompt "x86"
    1.19 +    select ARCH_SUPPORTS_LE
    1.20  
    1.21  config ARCH_x86_64
    1.22      bool
    1.23      prompt "x86_64"
    1.24 +    select ARCH_SUPPORTS_LE
    1.25  
    1.26  endchoice
    1.27  
    1.28 +config ARCH_SUPPORTS_BE
    1.29 +    bool
    1.30 +    default n
    1.31 +
    1.32 +config ARCH_SUPPORTS_LE
    1.33 +    bool
    1.34 +    default n
    1.35 +
    1.36  choice
    1.37      bool
    1.38      prompt "Endianness:"
    1.39 @@ -34,10 +48,12 @@
    1.40  config ARCH_BE
    1.41      bool
    1.42      prompt "Big endian"
    1.43 +    depends on ARCH_SUPPORTS_BE
    1.44  
    1.45  config ARCH_LE
    1.46      bool
    1.47      prompt "Little endian"
    1.48 +    depends on ARCH_SUPPORTS_LE
    1.49  
    1.50  endchoice
    1.51