From: Andi Kleen Date: Fri, 18 Sep 2009 19:49:37 +0000 (-0700) Subject: kbuild: fail build if recordmcount.pl fails X-Git-Tag: v2.6.32-rc1~148^2~6 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=66a570623be0d96130470a41cd38bce889b7e885;p=~shefty%2Frdma-dev.git 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 Signed-off-by: Andrew Morton Signed-off-by: Sam Ravnborg --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 83eef0a82d9..6e41b3b6b15 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -206,7 +206,7 @@ cmd_modversions = \ endif ifdef CONFIG_FTRACE_MCOUNT_RECORD -cmd_record_mcount = perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ +cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ "$(if $(CONFIG_64BIT),64,32)" \ "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ "$(if $(part-of-module),1,0)" "$(@)";