]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation
authorNathan Chancellor <nathan@kernel.org>
Thu, 1 Jun 2023 18:38:24 +0000 (11:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:21 +0000 (11:05 +0100)
commitd36719f2937625afb37670dd32822afb492c6888
tree88756acadaeacf8906bdc0d46d6fdbc265bc8fd2
parentd08146795689a0b2563b1eec8e4b6f4d050b2453
mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation

commit 08f6554ff90ef189e6b8f0303e57005bddfdd6a7 upstream.

A future change will move CLANG_FLAGS from KBUILD_{A,C}FLAGS to
KBUILD_CPPFLAGS so that '--target' is available while preprocessing.
When that occurs, the following error appears when building ARCH=mips
with clang (tip of tree error shown):

  clang: error: unsupported option '-mabi=' for target 'x86_64-pc-linux-gnu'

Add KBUILD_CPPFLAGS in the CHECKFLAGS invocation to keep everything
working after the move.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/Makefile