Commit 962bc221c3b1d63a461f8065bfb37122ce660119
Committed by
Benjamin Herrenschmidt
1 parent
924dd50bc4
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Showing 1 changed file with 17 additions and 3 deletions Side-by-side Diff
arch/powerpc/platforms/Kconfig.cputype
... | ... | @@ -404,14 +404,28 @@ |
404 | 404 | |
405 | 405 | endmenu |
406 | 406 | |
407 | -config CPU_LITTLE_ENDIAN | |
408 | - bool "Build little endian kernel" | |
409 | - default n | |
407 | +choice | |
408 | + prompt "Endianness selection" | |
409 | + default CPU_BIG_ENDIAN | |
410 | 410 | help |
411 | 411 | This option selects whether a big endian or little endian kernel will |
412 | 412 | be built. |
413 | 413 | |
414 | +config CPU_BIG_ENDIAN | |
415 | + bool "Build big endian kernel" | |
416 | + help | |
417 | + Build a big endian kernel. | |
418 | + | |
419 | + If unsure, select this option. | |
420 | + | |
421 | +config CPU_LITTLE_ENDIAN | |
422 | + bool "Build little endian kernel" | |
423 | + help | |
424 | + Build a little endian kernel. | |
425 | + | |
414 | 426 | Note that if cross compiling a little endian kernel, |
415 | 427 | CROSS_COMPILE must point to a toolchain capable of targeting |
416 | 428 | little endian powerpc. |
429 | + | |
430 | +endchoice |