summaryrefslogtreecommitdiff
path: root/extra/Configs/Config.in.arch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/Configs/Config.in.arch')
-rw-r--r--extra/Configs/Config.in.arch30
1 files changed, 21 insertions, 9 deletions
diff --git a/extra/Configs/Config.in.arch b/extra/Configs/Config.in.arch
index bce5a0b55..189b2f451 100644
--- a/extra/Configs/Config.in.arch
+++ b/extra/Configs/Config.in.arch
@@ -3,21 +3,33 @@
# see extra/config/Kconfig-language.txt
#
+config ARCH_ANY_ENDIAN
+ bool
+config ARCH_BIG_ENDIAN
+ bool
+config ARCH_LITTLE_ENDIAN
+ bool
+if ARCH_ANY_ENDIAN
choice
prompt "Target Processor Endianness"
help
- This is the endianness you wish to build use. Choose either Big
+ This is the endianness you wish to use. Choose either Big
Endian, or Little Endian.
-
-config ARCH_LITTLE_ENDIAN
- bool "Little Endian"
- depends on ARCH_SUPPORTS_LITTLE_ENDIAN
-
-config ARCH_BIG_ENDIAN
+config ARCH_WANTS_BIG_ENDIAN
bool "Big Endian"
- depends on ARCH_SUPPORTS_BIG_ENDIAN
-
+ select ARCH_BIG_ENDIAN
+config ARCH_WANTS_LITTLE_ENDIAN
+ bool "Little Endian"
+ select ARCH_LITTLE_ENDIAN
endchoice
+endif
+# if the arch only supports one endian, just display the setting
+if !ARCH_ANY_ENDIAN && ARCH_LITTLE_ENDIAN
+comment "Using Little Endian"
+endif
+if !ARCH_ANY_ENDIAN && ARCH_BIG_ENDIAN
+comment "Using Big Endian"
+endif
config ARCH_HAS_NO_MMU
bool "Target CPU does not have a memory management unit (MMU)"