1*4882a593Smuzhiyunifdef CONFIG_KCOV 2*4882a593Smuzhiyun 3*4882a593Smuzhiyunkcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC) += -fsanitize-coverage=trace-pc 4*4882a593Smuzhiyunkcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS) += -fsanitize-coverage=trace-cmp 5*4882a593Smuzhiyunkcov-flags-$(CONFIG_GCC_PLUGIN_SANCOV) += -fplugin=$(objtree)/scripts/gcc-plugins/sancov_plugin.so 6*4882a593Smuzhiyun 7*4882a593Smuzhiyunexport CFLAGS_KCOV := $(kcov-flags-y) 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunendif 10