diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-05-19 13:25:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-05-19 13:25:55 -0400 |
commit | 398995ce7980b03b5803f8f31073b45d87746bc1 (patch) | |
tree | 767d0e9d32f177c4c186d5e64210b3587ffff79a | |
parent | c3305257cd4df63e03e21e331a0140ae9c0faccc (diff) | |
parent | d6971822c288ce5547190c6f812cc978d6520777 (diff) |
Merge branch 'tip/perf/core-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core
-rw-r--r-- | scripts/Makefile.build | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index fdca952f6a40..6165622c3e29 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -255,6 +255,8 @@ sub_cmd_record_mcount = \ | |||
255 | if [ $(@) != "scripts/mod/empty.o" ]; then \ | 255 | if [ $(@) != "scripts/mod/empty.o" ]; then \ |
256 | $(objtree)/scripts/recordmcount $(RECORDMCOUNT_FLAGS) "$(@)"; \ | 256 | $(objtree)/scripts/recordmcount $(RECORDMCOUNT_FLAGS) "$(@)"; \ |
257 | fi; | 257 | fi; |
258 | recordmcount_source := $(srctree)/scripts/recordmcount.c \ | ||
259 | $(srctree)/scripts/recordmcount.h | ||
258 | else | 260 | else |
259 | sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ | 261 | sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ |
260 | "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ | 262 | "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ |
@@ -262,6 +264,7 @@ sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH | |||
262 | "$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CFLAGS)" \ | 264 | "$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CFLAGS)" \ |
263 | "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ | 265 | "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ |
264 | "$(if $(part-of-module),1,0)" "$(@)"; | 266 | "$(if $(part-of-module),1,0)" "$(@)"; |
267 | recordmcount_source := $(srctree)/scripts/recordmcount.pl | ||
265 | endif | 268 | endif |
266 | cmd_record_mcount = \ | 269 | cmd_record_mcount = \ |
267 | if [ "$(findstring -pg,$(_c_flags))" = "-pg" ]; then \ | 270 | if [ "$(findstring -pg,$(_c_flags))" = "-pg" ]; then \ |
@@ -282,13 +285,13 @@ define rule_cc_o_c | |||
282 | endef | 285 | endef |
283 | 286 | ||
284 | # Built-in and composite module parts | 287 | # Built-in and composite module parts |
285 | $(obj)/%.o: $(src)/%.c FORCE | 288 | $(obj)/%.o: $(src)/%.c $(recordmcount_source) FORCE |
286 | $(call cmd,force_checksrc) | 289 | $(call cmd,force_checksrc) |
287 | $(call if_changed_rule,cc_o_c) | 290 | $(call if_changed_rule,cc_o_c) |
288 | 291 | ||
289 | # Single-part modules are special since we need to mark them in $(MODVERDIR) | 292 | # Single-part modules are special since we need to mark them in $(MODVERDIR) |
290 | 293 | ||
291 | $(single-used-m): $(obj)/%.o: $(src)/%.c FORCE | 294 | $(single-used-m): $(obj)/%.o: $(src)/%.c $(recordmcount_source) FORCE |
292 | $(call cmd,force_checksrc) | 295 | $(call cmd,force_checksrc) |
293 | $(call if_changed_rule,cc_o_c) | 296 | $(call if_changed_rule,cc_o_c) |
294 | @{ echo $(@:.o=.ko); echo $@; } > $(MODVERDIR)/$(@F:.o=.mod) | 297 | @{ echo $(@:.o=.ko); echo $@; } > $(MODVERDIR)/$(@F:.o=.mod) |