From: Jeremy Fitzhardinge Date: Mon, 18 Aug 2008 22:58:12 +0000 (-0700) Subject: ftrace: fix build problem with CONFIG_FTRACE X-Git-Tag: v2.6.28-rc1~78^2~97 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6a4917e3ae5194a10e0723f96edc854c381e3063;p=linux-2.6-omap-h63xx.git ftrace: fix build problem with CONFIG_FTRACE 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 --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 463ddcc583e..232485ec526 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -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