On Thu, Nov 07, 2024 at 10:26:46PM +1100, Michael Ellerman wrote: > From: Arnd Bergmann <a...@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