diff options
| -rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -616,6 +616,11 @@ CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \ | |||
| 616 | $(call cc-disable-warning,maybe-uninitialized,) | 616 | $(call cc-disable-warning,maybe-uninitialized,) |
| 617 | export CFLAGS_GCOV | 617 | export CFLAGS_GCOV |
| 618 | 618 | ||
| 619 | # The arch Makefiles can override CC_FLAGS_FTRACE. We may also append it later. | ||
| 620 | ifdef CONFIG_FUNCTION_TRACER | ||
| 621 | CC_FLAGS_FTRACE := -pg | ||
| 622 | endif | ||
| 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 |
| 621 | ARCH_CPPFLAGS := | 626 | ARCH_CPPFLAGS := |
| @@ -755,9 +760,6 @@ KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \ | |||
| 755 | endif | 760 | endif |
| 756 | 761 | ||
| 757 | ifdef CONFIG_FUNCTION_TRACER | 762 | ifdef CONFIG_FUNCTION_TRACER |
| 758 | ifndef CC_FLAGS_FTRACE | ||
| 759 | CC_FLAGS_FTRACE := -pg | ||
| 760 | endif | ||
| 761 | ifdef CONFIG_FTRACE_MCOUNT_RECORD | 763 | ifdef 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) |
