forked from openkylin/platform_build
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:
commit
b534660b9c
|
@ -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