diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-09-14 23:31:02 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-09-14 23:31:02 -0400 |
| commit | 5b945fd2c34c6324752fc793266b4598a307d765 (patch) | |
| tree | 48e7684f00e165730c6a252ebe0739479c532971 | |
| parent | 090b75bcba62e8e0e43c8acdbc230d26c5b731dc (diff) | |
| parent | b1f4ff74fcb0e82664e8633cc225c2ad4234878a (diff) | |
Merge tag 'trace-v4.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing fix from Steven Rostedt:
"This fixes an issue with the build system caused by a change that
modifies CC_FLAGS_FTRACE. The issue is that it breaks the dependencies
and causes "make targz-pkg" to rebuild the entire world"
* tag 'trace-v4.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
tracing/Makefile: Fix handling redefinition of CC_FLAGS_FTRACE
| -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) |
