mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation
authorNathan Chancellor <nathan@kernel.org>
Thu, 1 Jun 2023 18:38:24 +0000 (11:38 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 5 Jun 2023 00:49:58 +0000 (09:49 +0900)
commit08f6554ff90ef189e6b8f0303e57005bddfdd6a7
treeeae930417c7168da9ce7c2a665cf9a83f496cfa8
parent2cb749466d179e3ccfe83eb8a52dc002d07b08af
mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation

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>
arch/mips/Makefile