From: Nicholas Piggin Date: Tue, 6 Jun 2023 06:46:56 +0000 (+1000) Subject: powerpc/boot: Separate BOOTCFLAGS from BOOTASFLAGS X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=54194a2fab4f78b96347882cf27894f76833c631;p=linux.git powerpc/boot: Separate BOOTCFLAGS from BOOTASFLAGS BOOTCFLAGS no longer contains anything that BOOTASFLAGS needs (except -pipe). Separate them to avoid fragility with cross-contamination of flags which has caused several build problems. Suggested-by: Linus Torvalds Link: https://lore.kernel.org/lkml/CAHk-=whyWUdJDeOBN1hRWYSkQkvzYiQ5RbSW5rJjExgnbSNX9Q@mail.gmail.com/ Signed-off-by: Nicholas Piggin Signed-off-by: Michael Ellerman Link: https://msgid.link/20230606064657.183969-4-npiggin@gmail.com --- diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 9445ec442512d..9cdc0858b2569 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -76,7 +76,7 @@ else BOOTTARGETFLAGS += -mlittle-endian endif -BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTTARGETFLAGS) $(BOOTCFLAGS) +BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTTARGETFLAGS) -pipe BOOTARFLAGS := -crD