diff mbox series

[5/9] powerpc/boot: Separate BOOTCFLAGS from BOOTASFLAGS

Message ID 20230426055848.402993-6-npiggin@gmail.com (mailing list archive)
State Superseded
Headers show
Series powerpc: Build fixes | expand

Commit Message

Nicholas Piggin April 26, 2023, 5:58 a.m. UTC
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 <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/lkml/CAHk-=whyWUdJDeOBN1hRWYSkQkvzYiQ5RbSW5rJjExgnbSNX9Q@mail.gmail.com/
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 arch/powerpc/boot/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Linus Torvalds April 26, 2023, 3:11 p.m. UTC | #1
On Tue, Apr 25, 2023 at 10:59 PM Nicholas Piggin <npiggin@gmail.com> wrote:
>
> Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>

I was all "what is Nick talking about", and had to follow the link to
remember that old discussion at all.

Patch obviously looks fine to me, I'll presumably be getting it at
some future point as part of a ppc pull request.

              Linus
diff mbox series

Patch

diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index bfeb7a9fef9c..99f56c94177f 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -77,7 +77,7 @@  else
 BOOTTARGETFLAGS	+= -mlittle-endian
 endif
 
-BOOTAFLAGS	:= -D__ASSEMBLY__ $(BOOTTARGETFLAGS) $(BOOTCFLAGS)
+BOOTAFLAGS	:= -D__ASSEMBLY__ $(BOOTTARGETFLAGS) -pipe
 
 BOOTARFLAGS	:= -crD