@@ -1,3 +1,39 @@
+config PPC64
+ bool "64-bit kernel"
+ default n
+ select HAVE_VIRT_CPU_ACCOUNTING
+ select ZLIB_DEFLATE
+ help
+ This option selects whether a 32-bit or a 64-bit kernel
+ will be built.
+
+choice
+ prompt "Endianness selection"
+ default CPU_BIG_ENDIAN
+ help
+ This option selects whether a big endian or little endian kernel will
+ be built.
+
+config CPU_BIG_ENDIAN
+ bool "Build big endian kernel"
+ help
+ Build a big endian kernel.
+
+ If unsure, select this option.
+
+config CPU_LITTLE_ENDIAN
+ bool "Build little endian kernel"
+ depends on PPC_BOOK3S_64
+ select PPC64_BOOT_WRAPPER
+ help
+ Build a little endian kernel.
+
+ Note that if cross compiling a little endian kernel,
+ CROSS_COMPILE must point to a toolchain capable of targeting
+ little endian powerpc.
+
+endchoice
+
source "arch/powerpc/platforms/Kconfig.cputype"
config PPC32
@@ -1,12 +1,3 @@
-config PPC64
- bool "64-bit kernel"
- default n
- select HAVE_VIRT_CPU_ACCOUNTING
- select ZLIB_DEFLATE
- help
- This option selects whether a 32-bit or a 64-bit kernel
- will be built.
-
menu "Processor support"
choice
prompt "Processor Type"
@@ -415,33 +406,6 @@ config VDSO32
big endian. That is because the only little endian configuration we
support is ppc64le which is 64-bit only.
-choice
- prompt "Endianness selection"
- default CPU_BIG_ENDIAN
- help
- This option selects whether a big endian or little endian kernel will
- be built.
-
-config CPU_BIG_ENDIAN
- bool "Build big endian kernel"
- help
- Build a big endian kernel.
-
- If unsure, select this option.
-
-config CPU_LITTLE_ENDIAN
- bool "Build little endian kernel"
- depends on PPC_BOOK3S_64
- select PPC64_BOOT_WRAPPER
- help
- Build a little endian kernel.
-
- Note that if cross compiling a little endian kernel,
- CROSS_COMPILE must point to a toolchain capable of targeting
- little endian powerpc.
-
-endchoice
-
config PPC64_BOOT_WRAPPER
def_bool n
depends on CPU_LITTLE_ENDIAN
We want the 64/32-bit choice, and the little/big endian choice to be at the very top of the menuconfig. That is because they have the most effect on what other options are available, so it makes sense to set them first. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> --- arch/powerpc/Kconfig | 36 ++++++++++++++++++++++++++++++++++ arch/powerpc/platforms/Kconfig.cputype | 36 ---------------------------------- 2 files changed, 36 insertions(+), 36 deletions(-)