Skip to content

Commit 66a5706

Browse files
Andi Kleensravnborg
authored andcommitted
kbuild: fail build if recordmcount.pl fails
When this script fails the build should fail too. Otherwise there are mysterious build failures later. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent 8f7f5c9 commit 66a5706

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/Makefile.build‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ cmd_modversions = \
206206
endif
207207

208208
ifdef CONFIG_FTRACE_MCOUNT_RECORD
209-
cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
209+
cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
210210
"$(if $(CONFIG_64BIT),64,32)" \
211211
"$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \
212212
"$(if $(part-of-module),1,0)" "$(@)";

0 commit comments

Comments
 (0)