diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-10-15 12:09:25 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-10-15 12:09:25 -0400 |
commit | 85caa993d7f218b7c2abcfcb28e212396b6a3313 (patch) | |
tree | 300aa8d761d3a56b53f97d82f2674b2a85691abe /scripts | |
parent | 444758636439810f110f86a3042c2dfd3626a9e2 (diff) |
ftrace: Use objtree for C version of recordmcount
The C version of recordmcount is compiled to a binary, which will
end up located in the objtree. If the kernel is built with O=path,
the srctree will not include the binary recordmcount caller.
Cc: Michal Marek <mmarek@suse.cz>
Cc: linux-kbuild@vger.kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 4d03a7efc689..4db60b2e2a76 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -210,7 +210,7 @@ endif | |||
210 | 210 | ||
211 | ifdef CONFIG_FTRACE_MCOUNT_RECORD | 211 | ifdef CONFIG_FTRACE_MCOUNT_RECORD |
212 | ifdef BUILD_C_RECORDMCOUNT | 212 | ifdef BUILD_C_RECORDMCOUNT |
213 | cmd_record_mcount = $(srctree)/scripts/recordmcount "$(@)"; | 213 | cmd_record_mcount = $(objtree)/scripts/recordmcount "$(@)"; |
214 | else | 214 | else |
215 | cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ | 215 | cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ |
216 | "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ | 216 | "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ |