Commit 962bc221 authored by Anton Blanchard's avatar Anton Blanchard Committed by Benjamin Herrenschmidt

powerpc: allyesconfig should not select CONFIG_CPU_LITTLE_ENDIAN

Stephen reported a failure in an allyesconfig build.
CONFIG_CPU_LITTLE_ENDIAN=y gets set but his toolchain is not
new enough to support little endian. We really want to
default to a big endian build; Ben suggested using a choice
which defaults to CPU_BIG_ENDIAN.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 924dd50b
...@@ -404,13 +404,27 @@ config PPC_DOORBELL ...@@ -404,13 +404,27 @@ config PPC_DOORBELL
endmenu endmenu
config CPU_LITTLE_ENDIAN choice
bool "Build little endian kernel" prompt "Endianness selection"
default n default CPU_BIG_ENDIAN
help help
This option selects whether a big endian or little endian kernel will This option selects whether a big endian or little endian kernel will
be built. 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"
help
Build a little endian kernel.
Note that if cross compiling a little endian kernel, Note that if cross compiling a little endian kernel,
CROSS_COMPILE must point to a toolchain capable of targeting CROSS_COMPILE must point to a toolchain capable of targeting
little endian powerpc. little endian powerpc.
endchoice
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment