]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gcc-plugins: disable under COMPILE_TEST
authorKees Cook <keescook@chromium.org>
Sat, 11 Jun 2016 16:09:28 +0000 (09:09 -0700)
committerMichal Marek <mmarek@suse.com>
Tue, 26 Jul 2016 22:08:54 +0000 (00:08 +0200)
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>
arch/Kconfig
lib/Kconfig.debug

index 05f1e95b796df13bebd100c30a7b22bc8a3bee6f..cae4bc587eae5e55e3c01e98cba378f44cdccbf3 100644 (file)
@@ -366,6 +366,7 @@ config HAVE_GCC_PLUGINS
 menuconfig GCC_PLUGINS
        bool "GCC plugins"
        depends on HAVE_GCC_PLUGINS
+       depends on !COMPILE_TEST
        help
          GCC plugins are loadable modules that provide extra features to the
          compiler. They are useful for runtime instrumentation and static analysis.
index b7827dca3fec43cf34ac8d69869a89a135e3be6a..7936e5e4da9dee385f54fb9f6048cd64e208c264 100644 (file)
@@ -708,8 +708,8 @@ config KCOV
        bool "Code coverage for fuzzing"
        depends on ARCH_HAS_KCOV
        select DEBUG_FS
-       select GCC_PLUGINS
-       select GCC_PLUGIN_SANCOV
+       select GCC_PLUGINS if !COMPILE_TEST
+       select GCC_PLUGIN_SANCOV if !COMPILE_TEST
        help
          KCOV exposes kernel code coverage information in a form suitable
          for coverage-guided fuzzing (randomized testing).