[PATCH] powerpc/Makefile: Don't pass -mcpu=powerpc64 when building 32-bit
Michael Ellerman
patch-notifications at ellerman.id.au
Wed Mar 2 23:41:50 AEDT 2022
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 that was written before 32-bit supported GENERIC_CPU. Prior
> to that the else block only applied to 64-bit Book3E.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/Makefile: Don't pass -mcpu=powerpc64 when building 32-bit
https://git.kernel.org/powerpc/c/2863dd2db23e0407f6c50b8ba5c0e55abef894f1
cheers
More information about the Linuxppc-dev
mailing list