# SPDX-License-Identifier: GPL-2.0 gcc-plugin-$([31mCONFIG_GCC_PLUGIN_CYC_COMPLEXITY[0m) += cyc_complexity_plugin.so gcc-plugin-$([31mCONFIG_GCC_PLUGIN_LATENT_ENTROPY[0m) += latent_entropy_plugin.so gcc-plugin-cflags-$([31mCONFIG_GCC_PLUGIN_LATENT_ENTROPY[0m) \ += -DLATENT_ENTROPY_PLUGIN ifdef [31mCONFIG_GCC_PLUGIN_LATENT_ENTROPY[0m DISABLE_LATENT_ENTROPY_PLUGIN += -fplugin-arg-latent_entropy_plugin-disable endif export DISABLE_LATENT_ENTROPY_PLUGIN gcc-plugin-$([31mCONFIG_GCC_PLUGIN_SANCOV[0m) += sancov_plugin.so gcc-plugin-$([31mCONFIG_GCC_PLUGIN_STRUCTLEAK[0m) += structleak_plugin.so gcc-plugin-cflags-$([31mCONFIG_GCC_PLUGIN_STRUCTLEAK_VERBOSE[0m) \ += -fplugin-arg-structleak_plugin-verbose gcc-plugin-cflags-$([31mCONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF[0m) \ += -fplugin-arg-structleak_plugin-byref gcc-plugin-cflags-$([31mCONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL[0m) \ += -fplugin-arg-structleak_plugin-byref-all gcc-plugin-cflags-$([31mCONFIG_GCC_PLUGIN_STRUCTLEAK[0m) \ += -DSTRUCTLEAK_PLUGIN gcc-plugin-$([31mCONFIG_GCC_PLUGIN_RANDSTRUCT[0m) += randomize_layout_plugin.so gcc-plugin-cflags-$([31mCONFIG_GCC_PLUGIN_RANDSTRUCT[0m) \ += -DRANDSTRUCT_PLUGIN gcc-plugin-cflags-$([31mCONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE[0m) \ += -fplugin-arg-randomize_layout_plugin-performance-mode gcc-plugin-$([31mCONFIG_GCC_PLUGIN_STACKLEAK[0m) += stackleak_plugin.so gcc-plugin-cflags-$([31mCONFIG_GCC_PLUGIN_STACKLEAK[0m) \ += -DSTACKLEAK_PLUGIN gcc-plugin-cflags-$([31mCONFIG_GCC_PLUGIN_STACKLEAK[0m) \ += -fplugin-arg-stackleak_plugin-track-min-size=$([31mCONFIG_STACKLEAK_TRACK_MIN_SIZE[0m) ifdef [31mCONFIG_GCC_PLUGIN_STACKLEAK[0m DISABLE_STACKLEAK_PLUGIN += -fplugin-arg-stackleak_plugin-disable endif export DISABLE_STACKLEAK_PLUGIN gcc-plugin-$([31mCONFIG_GCC_PLUGIN_ARM_SSP_PER_TASK[0m) += arm_ssp_per_task_plugin.so ifdef [31mCONFIG_GCC_PLUGIN_ARM_SSP_PER_TASK[0m DISABLE_ARM_SSP_PER_TASK_PLUGIN += -fplugin-arg-arm_ssp_per_task_plugin-disable endif export DISABLE_ARM_SSP_PER_TASK_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)) # The sancov_plugin.so is included via CFLAGS_KCOV, so it is removed here. GCC_PLUGINS_CFLAGS := $(filter-out %/sancov_plugin.so, $(GCC_PLUGINS_CFLAGS)) export GCC_PLUGINS_CFLAGS # Add the flags to the build! KBUILD_CFLAGS += $(GCC_PLUGINS_CFLAGS) # All enabled GCC plugins are collected here for building below. GCC_PLUGIN := $(gcc-plugin-y) export GCC_PLUGIN |