From 32da27a9ffe60a671ca53945194eb1650e57399f Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Fri, 29 May 2009 09:35:56 -0700 Subject: [PATCH] build images with minigzip instead of system gzip Use minigzip (from the zlib distribution, built in the android tree) to compress images rather than the system install of gzip. This will let us send useful patches for images since we can make zlib available in the applypatch program. --- tools/releasetools/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 51a6d8f5ec..686c6eff28 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -81,12 +81,13 @@ def BuildBootableImage(sourcedir): p1 = Run(["mkbootfs", os.path.join(sourcedir, "RAMDISK")], stdout=subprocess.PIPE) - p2 = Run(["gzip", "-n"], stdin=p1.stdout, stdout=ramdisk_img.file.fileno()) + p2 = Run(["minigzip"], + stdin=p1.stdout, stdout=ramdisk_img.file.fileno()) p2.wait() p1.wait() assert p1.returncode == 0, "mkbootfs of %s ramdisk failed" % (targetname,) - assert p2.returncode == 0, "gzip of %s ramdisk failed" % (targetname,) + assert p2.returncode == 0, "minigzip of %s ramdisk failed" % (targetname,) cmdline = open(os.path.join(sourcedir, "cmdline")).read().rstrip("\n") p = Run(["mkbootimg",