Patch "arm64: Kconfig: add a choice for endianness" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    arm64: Kconfig: add a choice for endianness

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm64-kconfig-add-a-choice-for-endianness.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7804e84316eab278104f4a13bdc6a519fcef4ab3
Author: Anders Roxell <anders.roxell@xxxxxxxxxx>
Date:   Wed Nov 13 10:26:52 2019 +0100

    arm64: Kconfig: add a choice for endianness
    
    [ Upstream commit d8e85e144bbe12e8d82c6b05d690a34da62cc991 ]
    
    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 <john.garry@xxxxxxxxxx>
    Acked-by: Will Deacon <will@xxxxxxxxxx>
    Signed-off-by: Anders Roxell <anders.roxell@xxxxxxxxxx>
    Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx>
    Stable-dep-of: 146a15b87335 ("arm64: Restrict CPU_BIG_ENDIAN to GNU as or LLVM IAS 15.x or newer")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 384b1bf56667c..185262e0e1da3 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -877,10 +877,26 @@ config ARM64_PA_BITS
 	default 48 if ARM64_PA_BITS_48
 	default 52 if ARM64_PA_BITS_52
 
+choice
+	prompt "Endianness"
+	default CPU_LITTLE_ENDIAN
+	help
+	  Select the endianness of data accesses performed by the CPU. Userspace
+	  applications will need to be compiled and linked for the endianness
+	  that is selected here.
+
 config CPU_BIG_ENDIAN
        bool "Build big-endian kernel"
        help
-         Say Y if you plan on running a kernel in big-endian mode.
+	  Say Y if you plan on running a kernel with a big-endian userspace.
+
+config CPU_LITTLE_ENDIAN
+	bool "Build little-endian kernel"
+	help
+	  Say Y if you plan on running a kernel with a little-endian userspace.
+	  This is usually the case for distributions targeting arm64.
+
+endchoice
 
 config SCHED_MC
 	bool "Multi-core scheduler support"



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux