Skip to content

Commit a519167

Browse files
keesMichal Marek
authored andcommitted
gcc-plugins: disable under COMPILE_TEST
Since adding the gcc plugin development headers is required for the gcc plugin support, we should ease into this new kernel build dependency more slowly. For now, disable the gcc plugins under COMPILE_TEST so that all*config builds will skip it. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Michal Marek <mmarek@suse.com>
1 parent 228d96c commit a519167

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ config HAVE_GCC_PLUGINS
366366
menuconfig GCC_PLUGINS
367367
bool "GCC plugins"
368368
depends on HAVE_GCC_PLUGINS
369+
depends on !COMPILE_TEST
369370
help
370371
GCC plugins are loadable modules that provide extra features to the
371372
compiler. They are useful for runtime instrumentation and static analysis.

lib/Kconfig.debug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,8 @@ config KCOV
708708
bool "Code coverage for fuzzing"
709709
depends on ARCH_HAS_KCOV
710710
select DEBUG_FS
711-
select GCC_PLUGINS
712-
select GCC_PLUGIN_SANCOV
711+
select GCC_PLUGINS if !COMPILE_TEST
712+
select GCC_PLUGIN_SANCOV if !COMPILE_TEST
713713
help
714714
KCOV exposes kernel code coverage information in a form suitable
715715
for coverage-guided fuzzing (randomized testing).

0 commit comments

Comments
 (0)