Skip to content

Commit d8e85e1

Browse files
roxellctmarinas
authored andcommitted
arm64: Kconfig: add a choice for endianness
When building allmodconfig KCONFIG_ALLCONFIG=$(pwd)/arch/arm64/configs/defconfig CONFIG_CPU_BIG_ENDIAN gets enabled. Which tends not to be what most people want. Another concern that has come up is that ACPI isn't built for an allmodconfig kernel today since that also depends on !CPU_BIG_ENDIAN. Rework so that we introduce a 'choice' and default the choice to CPU_LITTLE_ENDIAN. That means that when we build an allmodconfig kernel it will default to CPU_LITTLE_ENDIAN that most people tends to want. Reviewed-by: John Garry <[email protected]> Acked-by: Will Deacon <[email protected]> Signed-off-by: Anders Roxell <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
1 parent 3266774 commit d8e85e1

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

arch/arm64/Kconfig

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,10 +877,26 @@ config ARM64_PA_BITS
877877
default 48 if ARM64_PA_BITS_48
878878
default 52 if ARM64_PA_BITS_52
879879

880+
choice
881+
prompt "Endianness"
882+
default CPU_LITTLE_ENDIAN
883+
help
884+
Select the endianness of data accesses performed by the CPU. Userspace
885+
applications will need to be compiled and linked for the endianness
886+
that is selected here.
887+
880888
config CPU_BIG_ENDIAN
881889
bool "Build big-endian kernel"
882890
help
883-
Say Y if you plan on running a kernel in big-endian mode.
891+
Say Y if you plan on running a kernel with a big-endian userspace.
892+
893+
config CPU_LITTLE_ENDIAN
894+
bool "Build little-endian kernel"
895+
help
896+
Say Y if you plan on running a kernel with a little-endian userspace.
897+
This is usually the case for distributions targeting arm64.
898+
899+
endchoice
884900

885901
config SCHED_MC
886902
bool "Multi-core scheduler support"

0 commit comments

Comments
 (0)