Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andi Kleen and committed by
Sam Ravnborg
66a57062 8f7f5c9f

+1 -1
+1 -1
scripts/Makefile.build
··· 206 206 endif 207 207 208 208 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)" \ 210 210 "$(if $(CONFIG_64BIT),64,32)" \ 211 211 "$(OBJDUMP)" "$(OBJCOPY)" "$(CC)" "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ 212 212 "$(if $(part-of-module),1,0)" "$(@)";