From: Steven Rostedt Date: Fri, 15 Oct 2010 16:09:25 +0000 (-0400) Subject: ftrace: Use objtree for C version of recordmcount X-Git-Tag: upstream/snapshot3+hdmi~12756^2~19^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85caa993d7f218b7c2abcfcb28e212396b6a3313;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Cc: linux-kbuild@vger.kernel.org Signed-off-by: Steven Rostedt --- 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)" \