]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
bzip2/lzma: handle failures from bzip2 and lzma correctly
authorH. Peter Anvin <hpa@zytor.com>
Sun, 4 Jan 2009 23:10:40 +0000 (15:10 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 4 Jan 2009 23:53:35 +0000 (15:53 -0800)
Impact: Bug fix

If bzip2 or lzma fails (for example, if they aren't installed on the
system), we need to propagate the failure out to "make".  However,
they were masked by being followed by a semicolon.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
scripts/Makefile.lib

index 70b4676e3b99f607c933e4f12e663aa6faee484b..3b949a354470e7022cd71769351324b155d307e1 100644 (file)
@@ -193,10 +193,10 @@ cmd_gzip = gzip -f -9 < $< > $@
 size_append=$(CONFIG_SHELL) $(srctree)/scripts/bin_size
 
 quiet_cmd_bzip2 = BZIP2    $@
-cmd_bzip2 = (bzip2 -9 < $< ; $(size_append) $<) > $@ || (rm -f $@ ; false)
+cmd_bzip2 = (bzip2 -9 < $< && $(size_append) $<) > $@ || (rm -f $@ ; false)
 
 # Lzma
 # ---------------------------------------------------------------------------
 
 quiet_cmd_lzma = LZMA    $@
-cmd_lzma = (lzma -9 -c $< ; $(size_append) $<) >$@ || (rm -f $@ ; false)
+cmd_lzma = (lzma -9 -c $< && $(size_append) $<) >$@ || (rm -f $@ ; false)