aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4d5c883a98e5..a5ef6818157a 100644
--- a/Makefile
+++ b/Makefile
@@ -616,6 +616,11 @@ CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \
616 $(call cc-disable-warning,maybe-uninitialized,) 616 $(call cc-disable-warning,maybe-uninitialized,)
617export CFLAGS_GCOV 617export CFLAGS_GCOV
618 618
619# The arch Makefiles can override CC_FLAGS_FTRACE. We may also append it later.
620ifdef CONFIG_FUNCTION_TRACER
621 CC_FLAGS_FTRACE := -pg
622endif
623
619# The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default 624# The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default
620# values of the respective KBUILD_* variables 625# values of the respective KBUILD_* variables
621ARCH_CPPFLAGS := 626ARCH_CPPFLAGS :=
@@ -755,9 +760,6 @@ KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \
755endif 760endif
756 761
757ifdef CONFIG_FUNCTION_TRACER 762ifdef CONFIG_FUNCTION_TRACER
758ifndef CC_FLAGS_FTRACE
759CC_FLAGS_FTRACE := -pg
760endif
761ifdef CONFIG_FTRACE_MCOUNT_RECORD 763ifdef CONFIG_FTRACE_MCOUNT_RECORD
762 # gcc 5 supports generating the mcount tables directly 764 # gcc 5 supports generating the mcount tables directly
763 ifeq ($(call cc-option-yn,-mrecord-mcount),y) 765 ifeq ($(call cc-option-yn,-mrecord-mcount),y)