Skip to contentSkip to conversation

powerpc/boot: Fix boot wrapper code generation with CONFIG_POWER10_CPU

PATCH Applied Nicholas Piggin 2 participants 2 messages Apr 7, 2023 – Apr 26, 2023 PowerPC

lore
Share & tools
lore

Nicholas Piggin

author reviewer
#0 lore raw

PATCH 1/1 powerpc/boot: Fix boot wrapper code generation with CONFIG_POWER10_CPU

-mcpu=power10 will generate prefixed and pcrel code by default, which we do not support. The general kernel disables these with cflags, but those were missed for the boot wrapper.

Fixes 4b2a9315f20d9 ("powerpc/64s: POWER10 CPU Kconfig build option")
---
 arch/powerpc/boot/Makefile | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/boot/Makefile +2 -0
index 295f76df13b5..13fad4f0a6d8 100644
@@ -34,6 +34,8 @@ endif
 
 BOOTCFLAGS    := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
 		 -fno-strict-aliasing -O2 -msoft-float -mno-altivec -mno-vsx \
+		 $(call cc-option,-mno-prefixed) $(call cc-option,-mno-pcrel) \
+		 $(call cc-option,-mno-mma) \
 		 $(call cc-option,-mno-spe) $(call cc-option,-mspe=no) \
 		 -pipe -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
 		 $(LINUXINCLUDE)
Signature · 1 line
2.40.0