X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=scripts%2FMakefile.lib;h=979619574f70f700368d2d7742760c9cdb1602f2;hb=3516c6a8dc0b1153c611c4cf0dc4a51631f052bb;hp=c18fa150b6fe502319c92bd09f98ee984d48819c;hpb=d3f12d36f148f101c568bdbce795e41cd9ceadf3;p=linux-2.6-omap-h63xx.git diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index c18fa150b6f..979619574f7 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -186,3 +186,17 @@ quiet_cmd_gzip = GZIP $@ cmd_gzip = gzip -f -9 < $< > $@ +# Bzip2 +# --------------------------------------------------------------------------- + +# Bzip2 does not include size in file... so we have to fake that +size_append=$(CONFIG_SHELL) $(srctree)/scripts/bin_size + +quiet_cmd_bzip2 = BZIP2 $@ +cmd_bzip2 = (bzip2 -9 < $< && $(size_append) $<) > $@ || (rm -f $@ ; false) + +# Lzma +# --------------------------------------------------------------------------- + +quiet_cmd_lzma = LZMA $@ +cmd_lzma = (lzma -9 -c $< && $(size_append) $<) >$@ || (rm -f $@ ; false)