aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 354026873b13..afbbeda98b4c 100644
--- a/Makefile
+++ b/Makefile
@@ -609,7 +609,11 @@ KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly)
609endif 609endif
610 610
611ifdef CONFIG_FUNCTION_TRACER 611ifdef CONFIG_FUNCTION_TRACER
612KBUILD_CFLAGS += -pg 612ifdef CONFIG_HAVE_FENTRY
613CC_USING_FENTRY := $(call cc-option, -mfentry -DCC_USING_FENTRY)
614endif
615KBUILD_CFLAGS += -pg $(CC_USING_FENTRY)
616KBUILD_AFLAGS += $(CC_USING_FENTRY)
613ifdef CONFIG_DYNAMIC_FTRACE 617ifdef CONFIG_DYNAMIC_FTRACE
614 ifdef CONFIG_HAVE_C_RECORDMCOUNT 618 ifdef CONFIG_HAVE_C_RECORDMCOUNT
615 BUILD_C_RECORDMCOUNT := y 619 BUILD_C_RECORDMCOUNT := y