kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config
authorAleksander Jan Bajkowski <olek2@wp.pl>
Mon, 22 Feb 2021 18:48:42 +0000 (19:48 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 21 Oct 2022 11:47:01 +0000 (13:47 +0200)
commit9226f1e41948e841c1a546a6b58273e6e994539a
tree48f8ea323495f7711f13a695b10b4ed5a19c5d0d
parent069bda0adb5cb97c78ad9ea2561512ced487fa59
kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config

Endianness depends on CPU architecture. CONFIG_CPU_(BIG/LITTLE)_ENDIAN should
be enabled on target or subtarget based on SoC architecture.

Fixes warning:
$ make kernel_oldconfig CONFIG_TARGET=subtarget
...
.config:1008:warning: override: CPU_LITTLE_ENDIAN changes choice state
....

Summary:
- ARC - only the CONFIG_CPU_BIG_ENDIAN symbol is defined for this architeture.
  If it is disabled then the processor operates in LITTLE_ENDIAN mode (default),
- ARM32 - CONFIG_CPU_LITTLE_ENDIAN symbol available since kernel 5.19. This
  option should be enabled after OpenWRT moves to kernel 6.x. After refreshing
  the kernel, the symbol disappears,
- ARM64 - enabled CONFIG_CPU_LITTLE_ENDIAN,
- MIPS - enabled relevant symbols,
- POWERPC -  enabled CONFIG_CPU_BIG_ENDIAN,
- UML - Symbols are not defined for this architecture,
- X86 - always little endian. Symbols are not defined for this architecture.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
36 files changed:
target/linux/armvirt/64/config-5.15
target/linux/bcm27xx/bcm2710/config-5.15
target/linux/bcm27xx/bcm2711/config-5.15
target/linux/bcm4908/config-5.10
target/linux/bmips/config-5.15
target/linux/generic/config-5.10
target/linux/generic/config-5.15
target/linux/layerscape/armv8_64b/config-5.10
target/linux/malta/be/config-default
target/linux/malta/be64/config-default
target/linux/mediatek/filogic/config-5.15
target/linux/mediatek/mt7622/config-5.15
target/linux/mvebu/cortexa53/config-5.10
target/linux/mvebu/cortexa53/config-5.15
target/linux/mvebu/cortexa72/config-5.10
target/linux/mvebu/cortexa72/config-5.15
target/linux/octeon/config-5.10
target/linux/octeon/config-5.15
target/linux/octeontx/config-5.10
target/linux/pistachio/config-5.10
target/linux/ramips/mt7620/config-5.10
target/linux/ramips/mt7620/config-5.15
target/linux/ramips/mt7621/config-5.10
target/linux/ramips/mt7621/config-5.15
target/linux/ramips/mt76x8/config-5.10
target/linux/ramips/mt76x8/config-5.15
target/linux/ramips/rt288x/config-5.10
target/linux/ramips/rt288x/config-5.15
target/linux/ramips/rt305x/config-5.10
target/linux/ramips/rt305x/config-5.15
target/linux/ramips/rt3883/config-5.10
target/linux/ramips/rt3883/config-5.15
target/linux/rockchip/armv8/config-5.10
target/linux/rockchip/armv8/config-5.15
target/linux/sunxi/cortexa53/config-5.10
target/linux/sunxi/cortexa53/config-5.15