gcc-plugins: Add support for passing plugin arguments
authorEmese Revfy <re.emese@gmail.com>
Mon, 20 Jun 2016 18:40:24 +0000 (20:40 +0200)
committerKees Cook <keescook@chromium.org>
Tue, 9 Aug 2016 00:49:05 +0000 (17:49 -0700)
The latent_entropy plugin needs to pass arguments, so this adds the
support.

Signed-off-by: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/Makefile.gcc-plugins

index bbca1f46f6e4aa92a79ad68926363e1b2f9a5958..ffb928b9c74b1c540c8458138548e845299e4875 100644 (file)
@@ -19,7 +19,7 @@ ifdef CONFIG_GCC_PLUGINS
     endif
   endif
 
-  GCC_PLUGINS_CFLAGS := $(addprefix -fplugin=$(objtree)/scripts/gcc-plugins/, $(gcc-plugin-y))
+  GCC_PLUGINS_CFLAGS := $(strip $(addprefix -fplugin=$(objtree)/scripts/gcc-plugins/, $(gcc-plugin-y)) $(gcc-plugin-cflags-y))
 
   export PLUGINCC GCC_PLUGINS_CFLAGS GCC_PLUGIN SANCOV_PLUGIN