Skip to contentSkip to conversation

ARM: Kconfig: CPU_BIG_ENDIAN depends on !LD_IS_LLD

PATCH In review Nick Desaulniers 2 participants 2 messages Nov 9, 2020 – Nov 10, 2020 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Kconfig: CPU_BIG_ENDIAN depends on !LD_IS_LLD

LLD does not yet support any big endian architectures. Make this config non-selectable when using LLD until LLD is fixed.

---
 arch/arm/mm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mm/Kconfig +1 -0
index 65e4482e3849..02692fbe2db5 100644
@@ -743,6 +743,7 @@ config SWP_EMULATE
 config CPU_BIG_ENDIAN
 	bool "Build big-endian kernel"
 	depends on ARCH_SUPPORTS_BIG_ENDIAN
+	depends on !LD_IS_LLD
 	help
 	  Say Y if you plan on running a kernel in big-endian mode.
 	  Note that your board must be properly built and your board
Signature · 1 line
2.29.2.222.g5d2a92d10f8-goog
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 5 lines · Nick Desaulniers

LLD does not yet support any big endian architectures. Make this config non-selectable when using LLD until LLD is fixed.

I tested allyesconfig, allmodconfig, and about ten to fifteen randconfigs and never saw CONFIG_CPU_BIG_ENDIAN appear.

Quoted 19 lines
---
 arch/arm/mm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mm/Kconfig +1 -0
index 65e4482e3849..02692fbe2db5 100644
@@ -743,6 +743,7 @@ config SWP_EMULATE
 config CPU_BIG_ENDIAN
 	bool "Build big-endian kernel"
 	depends on ARCH_SUPPORTS_BIG_ENDIAN
+	depends on !LD_IS_LLD
 	help
 	  Say Y if you plan on running a kernel in big-endian mode.
 	  Note that your board must be properly built and your board
Signature · 1 line
2.29.2.222.g5d2a92d10f8-goog