All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: <linuxppc-dev@ozlabs.org>
Cc: thuth@redhat.com
Subject: [PATCH 3/6] powerpc/kconfig: Move bitness & endian options to the top
Date: Fri,  9 Oct 2015 08:09:14 +1100	[thread overview]
Message-ID: <1444338557-14988-3-git-send-email-mpe@ellerman.id.au> (raw)
In-Reply-To: <1444338557-14988-1-git-send-email-mpe@ellerman.id.au>

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(-)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index db685fa54c5f..ea9377259f15 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -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
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index c140e94c7c72..60b28e63c137 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -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
-- 
2.1.4

  parent reply	other threads:[~2015-10-08 21:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-08 21:09 [PATCH 1/6] powerpc/kconfig: Move NR_IRQS into "Kernel Options" Michael Ellerman
2015-10-08 21:09 ` [PATCH 2/6] powerpc/kconfig: Move sysdev Kconfig later Michael Ellerman
2015-10-09  5:54   ` Thomas Huth
2015-10-08 21:09 ` Michael Ellerman [this message]
2015-10-08 21:09 ` [PATCH 4/6] powerpc/kconfig: Move SCOM_DEBUGFS into "Kernel Hacking" Michael Ellerman
2015-10-08 21:09 ` [PATCH 5/6] powerpc/kconfig: Move cpu options after platform options Michael Ellerman
2015-10-09  5:47   ` Thomas Huth
2015-10-12 21:47   ` Scott Wood
2015-10-13  0:11     ` Michael Ellerman
2015-10-08 21:09 ` [PATCH 6/6] powerpc/kconfig: Cell CPU options should depend on PPC_CELL Michael Ellerman
2015-10-09  5:48   ` Thomas Huth
2015-10-08 21:30 ` [PATCH 1/6] powerpc/kconfig: Move NR_IRQS into "Kernel Options" Arnd Bergmann
2015-10-12 10:00   ` Michael Ellerman
2015-10-12 10:30     ` Arnd Bergmann
2015-10-12 11:07       ` Michael Ellerman
2015-10-12 11:50         ` Arnd Bergmann
2015-10-13  0:28           ` Michael Ellerman
2015-10-13 12:07             ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1444338557-14988-3-git-send-email-mpe@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.