ftrace: fix build problem with CONFIG_FTRACE
authorJeremy Fitzhardinge <jeremy@goop.org>
Mon, 18 Aug 2008 22:58:12 +0000 (15:58 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:35:53 +0000 (10:35 +0200)
I'm seeing when I use separate src/build dirs:

make[3]: *** [arch/x86/kernel/time_32.o] Error 1
/bin/sh: scripts/recordmcount.pl: No such file or directory
make[3]: *** [arch/x86/kernel/irq_32.o] Error 1
/bin/sh: scripts/recordmcount.pl: No such file or directory
make[3]: *** [arch/x86/kernel/ldt.o] Error 1
/bin/sh: scripts/recordmcount.pl: No such file or directory
make[3]: *** [arch/x86/kernel/i8259.o] Error 1
/bin/sh: scripts/recordmcount.pl: No such file or directory

This fixes it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
scripts/Makefile.build

index 463ddcc583edb93caac0d0da2079e65fc9f5593f..232485ec52650ed65b5dd50761291f8555e1614c 100644 (file)
@@ -199,7 +199,7 @@ cmd_modversions =                                                   \
 endif
 
 ifdef CONFIG_FTRACE_MCOUNT_RECORD
-cmd_record_mcount = scripts/recordmcount.pl "$(ARCH)" \
+cmd_record_mcount = $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
        "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" "$(@)";
 endif