diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-10-19 02:21:10 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-10-19 02:21:10 -0400 |
commit | 1fa41266e9d20f6d66f9d7d067d9825e2c1002b9 (patch) | |
tree | b3ba44e8efecece22265f9914bbe991ccbd0f9a3 | |
parent | ebf31f502492527e2b6b5e5cf85a4ebc7fc8a52e (diff) | |
parent | d7b4d6de57d414a6384376880f2caf7125a45494 (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
-rw-r--r-- | scripts/Makefile.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 4db60b2e2a76..843bd4f4ffc9 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -210,7 +210,13 @@ 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 = $(objtree)/scripts/recordmcount "$(@)"; | 213 | # Due to recursion, we must skip empty.o. |
214 | # The empty.o file is created in the make process in order to determine | ||
215 | # the target endianness and word size. It is made before all other C | ||
216 | # files, including recordmcount. | ||
217 | cmd_record_mcount = if [ $(@) != "scripts/mod/empty.o" ]; then \ | ||
218 | $(objtree)/scripts/recordmcount "$(@)"; \ | ||
219 | fi; | ||
214 | else | 220 | else |
215 | cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ | 221 | cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ |
216 | "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ | 222 | "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ |