forked from openkylin/platform_build
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.
This commit is contained in:
parent
02d444b07e
commit
32da27a9ff
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue