aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-08-27 03:08:30 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 04:36:16 -0400
commitb3a320417484a6d6b9d28098944df58341353992 (patch)
treec2b408434feb6ddf7547b19d85ad5f5c2649d6de /scripts/Makefile.build
parentf2f8458e751f9ae41dfec3c00a46d3e62dc38f60 (diff)
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 <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 232485ec5265..5ed4cbf1e0e1 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -199,8 +199,9 @@ cmd_modversions = \
199endif 199endif
200 200
201ifdef CONFIG_FTRACE_MCOUNT_RECORD 201ifdef CONFIG_FTRACE_MCOUNT_RECORD
202cmd_record_mcount = $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ 202cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl \
203 "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" "$(@)"; 203 "$(ARCH)" "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" \
204 "$(MV)" "$(@)";
204endif 205endif
205 206
206define rule_cc_o_c 207define rule_cc_o_c