29 lines · 1.2 KB · Text
RawDownload
# SPDX-License-Identifier: GPL-2.0 gcc-plugin-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY)	+= latent_entropy_plugin.sogcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_LATENT_ENTROPY)		\		+= -DLATENT_ENTROPY_PLUGINifdef CONFIG_GCC_PLUGIN_LATENT_ENTROPY    DISABLE_LATENT_ENTROPY_PLUGIN += -fplugin-arg-latent_entropy_plugin-disable -ULATENT_ENTROPY_PLUGINendifexport DISABLE_LATENT_ENTROPY_PLUGIN # All the plugin CFLAGS are collected here in case a build target needs to# filter them out of the KBUILD_CFLAGS.GCC_PLUGINS_CFLAGS := $(strip $(addprefix -fplugin=$(objtree)/scripts/gcc-plugins/, $(gcc-plugin-y)) $(gcc-plugin-cflags-y)) -DGCC_PLUGINSexport GCC_PLUGINS_CFLAGS # Add the flags to the build!KBUILD_CFLAGS += $(GCC_PLUGINS_CFLAGS) # Some plugins are enabled outside of this Makefile, but they still need to# be included in GCC_PLUGIN so they can get built.gcc-plugin-external-$(CONFIG_GCC_PLUGIN_RANDSTRUCT)		\	+= randomize_layout_plugin.sogcc-plugin-external-$(CONFIG_GCC_PLUGIN_STACKLEAK)		\	+= stackleak_plugin.so # All enabled GCC plugins are collected here for building in# scripts/gcc-scripts/Makefile.GCC_PLUGIN := $(gcc-plugin-y) $(gcc-plugin-external-y)export GCC_PLUGIN