Skip to content

Commit 0f5e2d2

Browse files
author
H. Peter Anvin
committed
bzip2/lzma: handle failures from bzip2 and lzma correctly
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>
1 parent ae03c49 commit 0f5e2d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/Makefile.lib‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ cmd_gzip = gzip -f -9 < $< > $@
193193
size_append=$(CONFIG_SHELL) $(srctree)/scripts/bin_size
194194

195195
quiet_cmd_bzip2 = BZIP2 $@
196-
cmd_bzip2 = (bzip2 -9 < $< ; $(size_append) $<) > $@ || (rm -f $@ ; false)
196+
cmd_bzip2 = (bzip2 -9 < $< && $(size_append) $<) > $@ || (rm -f $@ ; false)
197197

198198
# Lzma
199199
# ---------------------------------------------------------------------------
200200

201201
quiet_cmd_lzma = LZMA $@
202-
cmd_lzma = (lzma -9 -c $< ; $(size_append) $<) >$@ || (rm -f $@ ; false)
202+
cmd_lzma = (lzma -9 -c $< && $(size_append) $<) >$@ || (rm -f $@ ; false)

0 commit comments

Comments
 (0)