diff mbox

[8/9] powerpc: Add CONFIG_CPU_LITTLE_ENDIAN kernel config option.

Message ID 1384946106-18200-9-git-send-email-anton@samba.org (mailing list archive)
State Accepted, archived
Commit 7c105b63bd9887f10ec281b0020492e7c774d0fc
Headers show

Commit Message

Anton Blanchard Nov. 20, 2013, 11:15 a.m. UTC
With the little endian support merged, we can add the
CONFIG_CPU_LITTLE_ENDIAN kernel config option.

Signed-off-by: Anton Blanchard <anton@samba.org>
---
 arch/powerpc/platforms/Kconfig.cputype | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Michael Ellerman Nov. 21, 2013, 12:05 p.m. UTC | #1
On Wed, Nov 20, 2013 at 10:15:05PM +1100, Anton Blanchard wrote:
> With the little endian support merged, we can add the
> CONFIG_CPU_LITTLE_ENDIAN kernel config option.

This appears to do nothing, but the Makefile bits were already added in
commit d72b080 "powerpc: Add ability to build little endian kernels".

cheers
diff mbox

Patch

diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index c2a566f..132f872 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -403,3 +403,14 @@  config PPC_DOORBELL
 	default n
 
 endmenu
+
+config CPU_LITTLE_ENDIAN
+	bool "Build little endian kernel"
+	default n
+	help
+	  This option selects whether a big endian or little endian kernel will
+	  be built.
+
+	  Note that if cross compiling a little endian kernel,
+	  CROSS_COMPILE must point to a toolchain capable of targeting
+	  little endian powerpc.