Re: [PATCH] powerpc/Makefile: Don't pass -mcpu=powerpc64 when building 32-bit

2022-03-02 Thread Michael Ellerman
On Tue, 15 Feb 2022 22:28:58 +1100, Michael Ellerman wrote: > When CONFIG_GENERIC_CPU=y (true for all our defconfigs) we pass > -mcpu=powerpc64 to the compiler, even when we're building a 32-bit > kernel. > > This happens because we have an ifdef CONFIG_PPC_BOOK3S_64/else block in > the Makefile t

[PATCH] powerpc/Makefile: Don't pass -mcpu=powerpc64 when building 32-bit

2022-02-15 Thread Michael Ellerman
When CONFIG_GENERIC_CPU=y (true for all our defconfigs) we pass -mcpu=powerpc64 to the compiler, even when we're building a 32-bit kernel. This happens because we have an ifdef CONFIG_PPC_BOOK3S_64/else block in the Makefile that was written before 32-bit supported GENERIC_CPU. Prior to that the e