]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - scripts/Makefile.gcc-plugins
sancov: Split plugin build from plugin CFLAGS
authorKees Cook <keescook@chromium.org>
Tue, 3 May 2022 20:54:59 +0000 (13:54 -0700)
committerKees Cook <keescook@chromium.org>
Sun, 8 May 2022 08:33:06 +0000 (01:33 -0700)
commitd3646589703731026ae7bcba5731fa7a7d0e5291
tree195bab037266d8f24363fe6212c7a805c7828918
parent3b5eed3c71a2fb60aa4405ad92a2a6ad2677f220
sancov: Split plugin build from plugin CFLAGS

When the sancov_plugin is enabled, it gets added to gcc-plugin-y which
is used to populate both GCC_PLUGIN (for building the plugin) and
GCC_PLUGINS_CFLAGS (for enabling and options). Instead of adding sancov
to both and then removing it from GCC_PLUGINS_CFLAGS, create a separate
list, gcc-plugin-external-y, which is only added to GCC_PLUGIN.

This will also be used by the coming randstruct build changes.

Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: linux-kbuild@vger.kernel.org
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220503205503.3054173-3-keescook@chromium.org
scripts/Makefile.gcc-plugins