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/Makefile.build | |
parent | 444758636439810f110f86a3042c2dfd3626a9e2 (diff) | |
download | op-kernel-dev-85caa993d7f218b7c2abcfcb28e212396b6a3313.zip op-kernel-dev-85caa993d7f218b7c2abcfcb28e212396b6a3313.tar.gz |
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/Makefile.build')
-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 4d03a7ef..4db60b2 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -210,7 +210,7 @@ endif ifdef CONFIG_FTRACE_MCOUNT_RECORD ifdef BUILD_C_RECORDMCOUNT -cmd_record_mcount = $(srctree)/scripts/recordmcount "$(@)"; +cmd_record_mcount = $(objtree)/scripts/recordmcount "$(@)"; else cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ |