kbuild: fail build if recordmcount.pl fails
authorAndi Kleen <andi@firstfloor.org>
Fri, 18 Sep 2009 19:49:37 +0000 (12:49 -0700)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 20 Sep 2009 10:27:44 +0000 (12:27 +0200)
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>
scripts/Makefile.build

index 83eef0a82d967f1e6c616be32472ce71a2c6939a..6e41b3b6b154b1f1fc6a1f2261262c68beb5385c 100644 (file)
@@ -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)" "$(@)";