diff options
| author | Thomas Weissschuh <thomas.weissschuh@linutronix.de> | 2026-02-06 15:11:29 +0100 |
|---|---|---|
| committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2026-02-09 13:20:20 +0000 |
| commit | 561f60dfd1c10acaaf81bf523de2fe1ff39e2645 (patch) | |
| tree | 60ffaf6b72da8f82277c195f692bd1eb0763f4bd /arch | |
| parent | 3df8585afd9b340dc789b20f1101593961fc7e9e (diff) | |
ARM: 9470/1: Handle BE8 vs BE32 in ARCH_CC_CAN_LINK
ARM big-endian has two different binary formats. BE8 and the older BE32.
They are incompatible with each other.
Handle those when evaluating ARCH_CC_CAN_LINK by using the respective
configuration of the kernel itself.
Fixes: 3df8585afd9b ("ARM: 9469/1: Implement ARCH_HAS_CC_CAN_LINK")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/Kconfig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5ca48361e1a0..d5cb85d82dad 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1719,12 +1719,14 @@ endmenu config ARCH_CC_CAN_LINK bool default $(cc_can_link_user,-mlittle-endian) if CPU_LITTLE_ENDIAN - default $(cc_can_link_user,-mbig-endian) if CPU_BIG_ENDIAN + default $(cc_can_link_user,-mbig-endian -mbe8) if CPU_ENDIAN_BE8 + default $(cc_can_link_user,-mbig-endian -mbe32) if CPU_ENDIAN_BE32 config ARCH_USERFLAGS string default "-mlittle-endian" if CPU_LITTLE_ENDIAN - default "-mbig-endian" if CPU_BIG_ENDIAN + default "-mbig-endian -mbe8" if CPU_ENDIAN_BE8 + default "-mbig-endian -mbe32" if CPU_ENDIAN_BE32 menu "Power management options" |
