]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - scripts/Makefile.lib
bzip2/lzma: library support for gzip, bzip2 and lzma decompression
[net-next-2.6.git] / scripts / Makefile.lib
index e06365775bdfe16f5c0242f5bb4464a3c72c0c8c..70b4676e3b99f607c933e4f12e663aa6faee484b 100644 (file)
@@ -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)