diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-18 06:50:14 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-18 06:50:14 +0000 |
commit | ea0f380daa8b7b6accd0c77395ef6a4da0187db8 (patch) | |
tree | 875c4e5041a6cd4968245169c5cb2f480cd0d51d | |
parent | 25e6fcc89bbc181ade92b5d3e1c7ac90eb214039 (diff) |
simplify endian config/selection
-rw-r--r-- | extra/Configs/Config.alpha | 9 | ||||
-rw-r--r-- | extra/Configs/Config.arm | 9 | ||||
-rw-r--r-- | extra/Configs/Config.bfin | 9 | ||||
-rw-r--r-- | extra/Configs/Config.cris | 9 | ||||
-rw-r--r-- | extra/Configs/Config.e1 | 9 | ||||
-rw-r--r-- | extra/Configs/Config.frv | 9 | ||||
-rw-r--r-- | extra/Configs/Config.h8300 | 9 | ||||
-rw-r--r-- | extra/Configs/Config.hppa | 9 | ||||
-rw-r--r-- | extra/Configs/Config.i386 | 9 | ||||
-rw-r--r-- | extra/Configs/Config.i960 | 9 | ||||
-rw-r--r-- | extra/Configs/Config.ia64 | 9 | ||||
-rw-r--r-- | extra/Configs/Config.in.arch | 30 | ||||
-rw-r--r-- | extra/Configs/Config.m68k | 9 | ||||
-rw-r--r-- | extra/Configs/Config.microblaze | 9 | ||||
-rw-r--r-- | extra/Configs/Config.mips | 9 | ||||
-rw-r--r-- | extra/Configs/Config.nios | 10 | ||||
-rw-r--r-- | extra/Configs/Config.nios2 | 10 | ||||
-rw-r--r-- | extra/Configs/Config.powerpc | 9 | ||||
-rw-r--r-- | extra/Configs/Config.sh | 9 | ||||
-rw-r--r-- | extra/Configs/Config.sh64 | 9 | ||||
-rw-r--r-- | extra/Configs/Config.sparc | 9 | ||||
-rw-r--r-- | extra/Configs/Config.v850 | 9 | ||||
-rw-r--r-- | extra/Configs/Config.vax | 11 | ||||
-rw-r--r-- | extra/Configs/Config.x86_64 | 9 |
24 files changed, 46 insertions, 195 deletions
diff --git a/extra/Configs/Config.alpha b/extra/Configs/Config.alpha index 42866cf00..77978a4c5 100644 --- a/extra/Configs/Config.alpha +++ b/extra/Configs/Config.alpha @@ -6,17 +6,10 @@ config TARGET_ARCH default "alpha" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_LITTLE_ENDIAN select ARCH_HAS_MMU select ARCH_HAS_NO_LDSO select UCLIBC_HAS_LFS diff --git a/extra/Configs/Config.arm b/extra/Configs/Config.arm index 30f06085c..1b53cd61f 100644 --- a/extra/Configs/Config.arm +++ b/extra/Configs/Config.arm @@ -6,17 +6,10 @@ config TARGET_ARCH default "arm" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_ANY_ENDIAN config ARCH_CFLAGS string diff --git a/extra/Configs/Config.bfin b/extra/Configs/Config.bfin index 0fec6b218..961d60032 100644 --- a/extra/Configs/Config.bfin +++ b/extra/Configs/Config.bfin @@ -6,17 +6,10 @@ config TARGET_ARCH default "bfin" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_LITTLE_ENDIAN select ARCH_HAS_NO_MMU config ARCH_CFLAGS diff --git a/extra/Configs/Config.cris b/extra/Configs/Config.cris index 50ca4255f..0e52ef9d7 100644 --- a/extra/Configs/Config.cris +++ b/extra/Configs/Config.cris @@ -6,17 +6,10 @@ config TARGET_ARCH default "cris" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_LITTLE_ENDIAN config ARCH_CFLAGS string diff --git a/extra/Configs/Config.e1 b/extra/Configs/Config.e1 index 8a56853a6..d81a45446 100644 --- a/extra/Configs/Config.e1 +++ b/extra/Configs/Config.e1 @@ -6,17 +6,10 @@ config TARGET_ARCH default "e1" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default n - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_BIG_ENDIAN select ARCH_HAS_NO_MMU select HAVE_NO_SHARED diff --git a/extra/Configs/Config.frv b/extra/Configs/Config.frv index 7fbfdba43..e87ec2c5f 100644 --- a/extra/Configs/Config.frv +++ b/extra/Configs/Config.frv @@ -6,17 +6,10 @@ config TARGET_ARCH default "frv" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default n - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_BIG_ENDIAN select UCLIBC_HAS_FPU select ARCH_HAS_NO_MMU diff --git a/extra/Configs/Config.h8300 b/extra/Configs/Config.h8300 index 753937e8a..f739bcaf5 100644 --- a/extra/Configs/Config.h8300 +++ b/extra/Configs/Config.h8300 @@ -6,17 +6,10 @@ config TARGET_ARCH default "h8300" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_ANY_ENDIAN select ARCH_HAS_NO_MMU choice diff --git a/extra/Configs/Config.hppa b/extra/Configs/Config.hppa index 43362628d..ecc50f55c 100644 --- a/extra/Configs/Config.hppa +++ b/extra/Configs/Config.hppa @@ -6,17 +6,10 @@ config TARGET_ARCH default "hppa" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default n - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_BIG_ENDIAN select ARCH_HAS_MMU select HAS_NO_THREADS select ARCH_HAS_NO_LDSO diff --git a/extra/Configs/Config.i386 b/extra/Configs/Config.i386 index d35a902e5..e76516ac1 100644 --- a/extra/Configs/Config.i386 +++ b/extra/Configs/Config.i386 @@ -6,17 +6,10 @@ config TARGET_ARCH default "i386" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_LITTLE_ENDIAN select ARCH_HAS_MMU config ARCH_CFLAGS diff --git a/extra/Configs/Config.i960 b/extra/Configs/Config.i960 index bc903aa21..1d469f9ea 100644 --- a/extra/Configs/Config.i960 +++ b/extra/Configs/Config.i960 @@ -6,17 +6,10 @@ config TARGET_ARCH default "i960" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_LITTLE_ENDIAN select ARCH_HAS_NO_MMU select HAS_NO_THREADS diff --git a/extra/Configs/Config.ia64 b/extra/Configs/Config.ia64 index fc2c7c190..f13b82302 100644 --- a/extra/Configs/Config.ia64 +++ b/extra/Configs/Config.ia64 @@ -6,17 +6,10 @@ config TARGET_ARCH default "ia64" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_LITTLE_ENDIAN select ARCH_HAS_MMU select HAS_NO_THREADS select ARCH_HAS_NO_LDSO 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)" diff --git a/extra/Configs/Config.m68k b/extra/Configs/Config.m68k index 7ede9e7de..e99b84396 100644 --- a/extra/Configs/Config.m68k +++ b/extra/Configs/Config.m68k @@ -6,17 +6,10 @@ config TARGET_ARCH default "m68k" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default n - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_BIG_ENDIAN config ARCH_CFLAGS string diff --git a/extra/Configs/Config.microblaze b/extra/Configs/Config.microblaze index ea790a461..11561b2bb 100644 --- a/extra/Configs/Config.microblaze +++ b/extra/Configs/Config.microblaze @@ -6,17 +6,10 @@ config TARGET_ARCH default "microblaze" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default n - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_BIG_ENDIAN select ARCH_HAS_NO_MMU config ARCH_CFLAGS diff --git a/extra/Configs/Config.mips b/extra/Configs/Config.mips index bcb03dff6..43e0bbb46 100644 --- a/extra/Configs/Config.mips +++ b/extra/Configs/Config.mips @@ -6,17 +6,10 @@ config TARGET_ARCH default "mips" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_ANY_ENDIAN config ARCH_CFLAGS string diff --git a/extra/Configs/Config.nios b/extra/Configs/Config.nios index 786bb73ba..fd5c7d606 100644 --- a/extra/Configs/Config.nios +++ b/extra/Configs/Config.nios @@ -6,19 +6,11 @@ config TARGET_ARCH default "nios" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y - select ARCH_HAS_NO_MMU select ARCH_LITTLE_ENDIAN + select ARCH_HAS_NO_MMU select HAVE_NO_PIC config ARCH_CFLAGS diff --git a/extra/Configs/Config.nios2 b/extra/Configs/Config.nios2 index 8753e2eaa..f15f6aac7 100644 --- a/extra/Configs/Config.nios2 +++ b/extra/Configs/Config.nios2 @@ -6,19 +6,11 @@ config TARGET_ARCH default "nios2" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y - select ARCH_HAS_NO_MMU select ARCH_LITTLE_ENDIAN + select ARCH_HAS_NO_MMU select HAVE_NO_PIC config ARCH_CFLAGS diff --git a/extra/Configs/Config.powerpc b/extra/Configs/Config.powerpc index 818157a05..fab79b135 100644 --- a/extra/Configs/Config.powerpc +++ b/extra/Configs/Config.powerpc @@ -6,17 +6,10 @@ config TARGET_ARCH default "powerpc" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default n - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_BIG_ENDIAN select ARCH_HAS_MMU config ARCH_CFLAGS diff --git a/extra/Configs/Config.sh b/extra/Configs/Config.sh index be21bdf08..061052e58 100644 --- a/extra/Configs/Config.sh +++ b/extra/Configs/Config.sh @@ -6,17 +6,10 @@ config TARGET_ARCH default "sh" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_ANY_ENDIAN config ARCH_CFLAGS string diff --git a/extra/Configs/Config.sh64 b/extra/Configs/Config.sh64 index d0da8aa34..0cabb38ae 100644 --- a/extra/Configs/Config.sh64 +++ b/extra/Configs/Config.sh64 @@ -6,17 +6,10 @@ config TARGET_ARCH default "sh64" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_ANY_ENDIAN config ARCH_CFLAGS string diff --git a/extra/Configs/Config.sparc b/extra/Configs/Config.sparc index 151623e78..1dba6ddb6 100644 --- a/extra/Configs/Config.sparc +++ b/extra/Configs/Config.sparc @@ -6,17 +6,10 @@ config TARGET_ARCH default "sparc" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default n - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_BIG_ENDIAN config ARCH_CFLAGS string diff --git a/extra/Configs/Config.v850 b/extra/Configs/Config.v850 index 68ad0523d..5ee312195 100644 --- a/extra/Configs/Config.v850 +++ b/extra/Configs/Config.v850 @@ -6,17 +6,10 @@ config TARGET_ARCH default "v850" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_LITTLE_ENDIAN select ARCH_HAS_NO_MMU select HAVE_NO_PIC diff --git a/extra/Configs/Config.vax b/extra/Configs/Config.vax index 1c7de1590..224d9067f 100644 --- a/extra/Configs/Config.vax +++ b/extra/Configs/Config.vax @@ -6,15 +6,11 @@ config TARGET_ARCH default "vax" -config HAVE_ELF - bool - select HAVE_NO_SHARED - select ARCH_HAS_NO_LDSO - default y - -config ARCH_SUPPORTS_LITTLE_ENDIAN +config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_LITTLE_ENDIAN + select ARCH_HAS_NO_LDSO config ARCH_CFLAGS string @@ -28,4 +24,3 @@ config LIBGCC_CFLAGS config CROSS string default "vax-linux-uclibc-" - diff --git a/extra/Configs/Config.x86_64 b/extra/Configs/Config.x86_64 index 971d79f37..61a47d94c 100644 --- a/extra/Configs/Config.x86_64 +++ b/extra/Configs/Config.x86_64 @@ -6,17 +6,10 @@ config TARGET_ARCH default "x86_64" -config ARCH_SUPPORTS_BIG_ENDIAN - bool - default n - -config ARCH_SUPPORTS_LITTLE_ENDIAN - bool - default y - config FORCE_OPTIONS_FOR_ARCH bool default y + select ARCH_LITTLE_ENDIAN select ARCH_HAS_MMU select UCLIBC_HAS_LFS |