|
@@ -375,8 +375,6 @@ CFLAGS_KERNEL =
|
|
|
AFLAGS_KERNEL =
|
|
|
LDFLAGS_vmlinux =
|
|
|
CFLAGS_GCOV := -fprofile-arcs -ftest-coverage -fno-tree-loop-im $(call cc-disable-warning,maybe-uninitialized,)
|
|
|
-CFLAGS_KCOV := $(call cc-option,-fsanitize-coverage=trace-pc,)
|
|
|
-
|
|
|
|
|
|
# Use USERINCLUDE when you must reference the UAPI directories only.
|
|
|
USERINCLUDE := \
|
|
@@ -659,6 +657,7 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLA
|
|
|
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
|
|
|
endif
|
|
|
|
|
|
+include scripts/Makefile.kcov
|
|
|
include scripts/Makefile.gcc-plugins
|
|
|
|
|
|
ifdef CONFIG_READABLE_ASM
|