gcc-plugins: test plugin support in Kconfig and clean up Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 28 May 2018 09:22:06 +0000 (18:22 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 11 Jun 2018 00:16:22 +0000 (09:16 +0900)
commit59f53855babf757ac7be19995670ab884aaf9b71
tree482e47560c10f6d2a180cbf55d8cc196f7f6922b
parent8034c2fb1225979b1cc9b9a12fa8094ca10b4fc3
gcc-plugins: test plugin support in Kconfig and clean up Makefile

Run scripts/gcc-plugin.sh from Kconfig so that users can enable
GCC_PLUGINS only when the compiler supports building plugins.

Kconfig defines a new symbol, PLUGIN_HOSTCC.  This will contain
the compiler (g++ or gcc) used for building plugins, or empty
if the plugin can not be supported at all.

This allows us to remove all ugly testing in Makefile.gcc-plugins.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Kees Cook <keescook@chromium.org>
arch/Kconfig
scripts/Kconfig.include
scripts/Makefile.gcc-plugins
scripts/gcc-plugins/Makefile