From: Andrew Morton Date: Wed, 27 Aug 2008 07:08:30 +0000 (+0200) Subject: kbuild: ftrace: don't assume that scripts/recordmcount.pl is executable X-Git-Tag: v2.6.28-rc1~78^2~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3a320417484a6d6b9d28098944df58341353992;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git kbuild: ftrace: don't assume that scripts/recordmcount.pl is executable CHK include/linux/version.h CHK include/linux/utsrelease.h CC scripts/mod/empty.o /bin/sh: /usr/src/25/scripts/recordmcount.pl: Permission denied We shouldn't assume that files have their `x' bits set. There are various ways in which file permissions get lost, including use of patch(1). It might not be correct to assume that perl lives in $PATH? Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 232485e..5ed4cbf 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -199,8 +199,9 @@ cmd_modversions = \ endif ifdef CONFIG_FTRACE_MCOUNT_RECORD -cmd_record_mcount = $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ - "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" "$(@)"; +cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl \ + "$(ARCH)" "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" \ + "$(MV)" "$(@)"; endif define rule_cc_o_c