powerpc/Makefile: Allow overriding CPP
authorArnd Bergmann <arnd@arndb.de>
Thu, 7 Nov 2024 11:26:46 +0000 (22:26 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 15 Nov 2024 00:59:55 +0000 (11:59 +1100)
commita5371018eefdd81f4152926a6d2b9480a75ac2a6
treeba1069ca06279e78e8734e311a8a5341860d3418
parent4aa5cc1e0012f784bc7f637458e597564833b425
powerpc/Makefile: Allow overriding CPP

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.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Closes: https://lore.kernel.org/all/20240607061629.530301-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[mpe: Rebase, write change log, add Arnd's SoB as communicated privately]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20241107112646.32401-1-mpe@ellerman.id.au
arch/powerpc/Makefile
arch/powerpc/kernel/vdso/Makefile