浏览代码

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>
Kees Cook 9 年之前
父节点
当前提交
a519167e75
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      arch/Kconfig
  2. 2 2
      lib/Kconfig.debug

+ 1 - 0
arch/Kconfig

@@ -366,6 +366,7 @@ config HAVE_GCC_PLUGINS
 menuconfig GCC_PLUGINS
 menuconfig GCC_PLUGINS
 	bool "GCC plugins"
 	bool "GCC plugins"
 	depends on HAVE_GCC_PLUGINS
 	depends on HAVE_GCC_PLUGINS
+	depends on !COMPILE_TEST
 	help
 	help
 	  GCC plugins are loadable modules that provide extra features to the
 	  GCC plugins are loadable modules that provide extra features to the
 	  compiler. They are useful for runtime instrumentation and static analysis.
 	  compiler. They are useful for runtime instrumentation and static analysis.

+ 2 - 2
lib/Kconfig.debug

@@ -708,8 +708,8 @@ config KCOV
 	bool "Code coverage for fuzzing"
 	bool "Code coverage for fuzzing"
 	depends on ARCH_HAS_KCOV
 	depends on ARCH_HAS_KCOV
 	select DEBUG_FS
 	select DEBUG_FS
-	select GCC_PLUGINS
-	select GCC_PLUGIN_SANCOV
+	select GCC_PLUGINS if !COMPILE_TEST
+	select GCC_PLUGIN_SANCOV if !COMPILE_TEST
 	help
 	help
 	  KCOV exposes kernel code coverage information in a form suitable
 	  KCOV exposes kernel code coverage information in a form suitable
 	  for coverage-guided fuzzing (randomized testing).
 	  for coverage-guided fuzzing (randomized testing).