forked from openkylin/platform_build
releasetools: Allow creating target_files with ZIP64.
add_img_to_target_files.py fails when the target_files.zip is over 4GiB when adding IMAGES/ folder. Specify the flag to allow creating target_files.zip with ZIP64 extension. Other zip artifacts (-img.zip, -ota.zip etc) remain in non-ZIP64 format. zip2zip is not affected, which still creates non-ZIP64 zips even when copying from target_files in ZIP64. Bug: 30961841 Test: "make dist" with large system image and check the artifacts. Change-Id: I0568745f01ef8f0239081f783eac92288d4fdd84
This commit is contained in:
parent
ce4c49c2f2
commit
9c84e50f4c
|
@ -316,7 +316,8 @@ def AddImagesToTargetFiles(filename):
|
|||
|
||||
common.ZipClose(input_zip)
|
||||
output_zip = zipfile.ZipFile(filename, "a",
|
||||
compression=zipfile.ZIP_DEFLATED)
|
||||
compression=zipfile.ZIP_DEFLATED,
|
||||
allowZip64=True)
|
||||
|
||||
has_recovery = (OPTIONS.info_dict.get("no_recovery") != "true")
|
||||
system_root_image = (OPTIONS.info_dict.get("system_root_image", None) == "true")
|
||||
|
|
Loading…
Reference in New Issue