Message ID | 20230427-remove-power10-args-from-boot-aflags-clang-v1-1-9107f7c943bc@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 2b694fc96fe33a7c042e3a142d27d945c8c668b0 |
Headers | show |
Series | powerpc/boot: Disable power10 features after BOOTAFLAGS assignment | expand |
On Thu, 27 Apr 2023 12:34:53 -0700, Nathan Chancellor wrote: > When building the boot wrapper assembly files with clang after > commit 648a1783fe25 ("powerpc/boot: Fix boot wrapper code generation > with CONFIG_POWER10_CPU"), the following warnings appear for each file > built: > > '-prefixed' is not a recognized feature for this target (ignoring feature) > '-pcrel' is not a recognized feature for this target (ignoring feature) > > [...] Applied to powerpc/fixes. [1/1] powerpc/boot: Disable power10 features after BOOTAFLAGS assignment https://git.kernel.org/powerpc/c/2b694fc96fe33a7c042e3a142d27d945c8c668b0 cheers
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 85cde5bf04b7..771b79423bbc 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -34,8 +34,6 @@ 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) @@ -71,6 +69,10 @@ BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -nostdinc BOOTARFLAGS := -crD +BOOTCFLAGS += $(call cc-option,-mno-prefixed) \ + $(call cc-option,-mno-pcrel) \ + $(call cc-option,-mno-mma) + ifdef CONFIG_CC_IS_CLANG BOOTCFLAGS += $(CLANG_FLAGS) BOOTAFLAGS += $(CLANG_FLAGS)