aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-10-15 06:12:28 +0200
committerIngo Molnar <mingo@elte.hu>2010-10-15 06:12:28 +0200
commit0fdf13606b67f830559abdaad15980c7f4f05ec4 (patch)
treedd69bf50a6d27cd15f1876657584e4e2b526d9d8 /scripts/Makefile.build
parentd9d572a9c0195486e3baf0d8d6a710196a707335 (diff)
parentcf4db2597ae93b60efc0a7a4ec08690b75d629b1 (diff)
Merge branch 'tip/perf/recordmcount-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index a1a5cf95a68..4d03a7efc68 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -209,12 +209,16 @@ cmd_modversions = \
endif
ifdef CONFIG_FTRACE_MCOUNT_RECORD
+ifdef BUILD_C_RECORDMCOUNT
+cmd_record_mcount = $(srctree)/scripts/recordmcount "$(@)";
+else
cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
"$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \
"$(if $(CONFIG_64BIT),64,32)" \
"$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \
"$(if $(part-of-module),1,0)" "$(@)";
endif
+endif
define rule_cc_o_c
$(call echo-cmd,checksrc) $(cmd_checksrc) \