Skip to contentSkip to conversation

kbuild: fail build if recordmcount.pl fails

PATCH In review [email protected] 1 participant 1 message Sep 18, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 17/18 kbuild: fail build if recordmcount.pl fails

From: Andi Kleen <[email protected]>

When this script fails the build should fail too. Otherwise there are mysterious build failures later.

---

 scripts/Makefile.build |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/Makefile.build renamed from scripts/Makefile.build~kbuild-fail-build-if-recordmcountpl-fails +1 -1
diff -puN scripts/Makefile.build~kbuild-fail-build-if-recordmcountpl-fails 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)" "$(@)";

_