# HG changeset patch # User "Yann E. MORIN" # Date 1176313891 0 # Node ID 2dce00870893ee83f1ef9652c684243308f10aff # Parent fbdc53e2ee3e4e05196f64676ed6b0c13e9007af Don't prompt for endianness not suppoted by selected architecture. Change suggested by Robert P. J. DAY . diff -r fbdc53e2ee3e -r 2dce00870893 config/target.in --- a/config/target.in Wed Apr 11 17:43:38 2007 +0000 +++ b/config/target.in Wed Apr 11 17:51:31 2007 +0000 @@ -12,21 +12,35 @@ config ARCH_ARM bool prompt "arm" + select ARCH_SUPPORTS_BE + select ARCH_SUPPORTS_LE config ARCH_MIPS bool prompt "mips" + select ARCH_SUPPORTS_BE + select ARCH_SUPPORTS_LE config ARCH_x86 bool prompt "x86" + select ARCH_SUPPORTS_LE config ARCH_x86_64 bool prompt "x86_64" + select ARCH_SUPPORTS_LE endchoice +config ARCH_SUPPORTS_BE + bool + default n + +config ARCH_SUPPORTS_LE + bool + default n + choice bool prompt "Endianness:" @@ -34,10 +48,12 @@ config ARCH_BE bool prompt "Big endian" + depends on ARCH_SUPPORTS_BE config ARCH_LE bool prompt "Little endian" + depends on ARCH_SUPPORTS_LE endchoice