[PATCH] powerpc/Makefile: Allow overriding CPP
Segher Boessenkool
segher at kernel.crashing.org
Fri Nov 8 06:14:49 AEDT 2024
On Thu, Nov 07, 2024 at 10:26:46PM +1100, Michael Ellerman wrote:
> From: Arnd Bergmann <arnd at arndb.de>
>
> Unlike all other arches, powerpc doesn't allow the user to override CPP,
> because it sets it unconditionally in the arch Makefile. This can lead
> to strange build failures.
>
> Instead add the required flags to KBUILD_CPPFLAGS, which are passed
> to CPP, CC and AS invocations by the generic Makefile logic.
You can also use "CPP ?=" instead of "CPP =". Your solution is better
I think, but, FYI, FFR :-)
Segher
More information about the Linuxppc-dev
mailing list