am bfeb1936: Merge change 2717 into donut

Merge commit 'bfeb193659412fce01136ce854257cc54fbe8e14'

* commit 'bfeb193659412fce01136ce854257cc54fbe8e14':
  build images with minigzip instead of system gzip
This commit is contained in:
Android (Google) Code Review 2009-06-01 12:01:16 -07:00 committed by The Android Open Source Project
commit b534660b9c
1 changed files with 3 additions and 2 deletions

View File

@ -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",