summaryrefslogtreecommitdiffstats
path: root/arch/nds32/kernel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/kernel/Makefile')
-rw-r--r--arch/nds32/kernel/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/nds32/kernel/Makefile b/arch/nds32/kernel/Makefile
index 42792743e8b9..27cded39fa66 100644
--- a/arch/nds32/kernel/Makefile
+++ b/arch/nds32/kernel/Makefile
@@ -21,3 +21,9 @@ extra-y := head.o vmlinux.lds
obj-y += vdso/
+
+obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o
+
+ifdef CONFIG_FUNCTION_TRACER
+CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
+endif