aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/mm/Makefile
diff options
context:
space:
mode:
authorTobias Klauser2020-06-26 14:40:56 +0200
committerPalmer Dabbelt2020-07-30 11:37:35 -0700
commit20d38f7c45a44e4b762b586a7bcacbc93ddb3153 (patch)
tree0f6256feaa2a3e5b1d417c86b33097bb54c35919 /arch/riscv/mm/Makefile
parented48b297fe211400531a129c592165958d661def (diff)
riscv: Allow building with kcov coverage
Add ARCH_HAS_KCOV and HAVE_GCC_PLUGINS to the riscv Kconfig. Also disable instrumentation of some early boot code and vdso. Boot-tested on QEMU's riscv64 virt machine. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/mm/Makefile')
-rw-r--r--arch/riscv/mm/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile
index 363ef01c30b1..c0185e556ca5 100644
--- a/arch/riscv/mm/Makefile
+++ b/arch/riscv/mm/Makefile
@@ -5,6 +5,8 @@ ifdef CONFIG_FTRACE
CFLAGS_REMOVE_init.o = -pg
endif
+KCOV_INSTRUMENT_init.o := n
+
obj-y += init.o
obj-y += extable.o
obj-$(CONFIG_MMU) += fault.o pageattr.o