Merge "Allow to build the update.zip for emulator build."
This commit is contained in:
commit
3a9cb0ca11
3 changed files with 15 additions and 10 deletions
|
@ -1379,6 +1379,11 @@ $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
|
|||
.PHONY: otapackage
|
||||
otapackage: $(INTERNAL_OTA_PACKAGE_TARGET)
|
||||
|
||||
endif # recovery_fstab is defined
|
||||
endif # TARGET_NO_KERNEL != true
|
||||
endif # TARGET_DEVICE != generic*
|
||||
endif # TARGET_PRODUCT != sdk
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# The update package
|
||||
|
||||
|
@ -1400,11 +1405,6 @@ $(INTERNAL_UPDATE_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
|
|||
.PHONY: updatepackage
|
||||
updatepackage: $(INTERNAL_UPDATE_PACKAGE_TARGET)
|
||||
|
||||
endif # recovery_fstab is defined
|
||||
endif # TARGET_NO_KERNEL != true
|
||||
endif # TARGET_DEVICE != generic*
|
||||
endif # TARGET_PRODUCT != sdk
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# A zip of the symbols directory. Keep the full paths to make it
|
||||
# more obvious where these files came from.
|
||||
|
|
|
@ -498,6 +498,8 @@ def CheckSize(data, target, info_dict):
|
|||
if target.endswith(".img"): target = target[:-4]
|
||||
mount_point = "/" + target
|
||||
|
||||
fs_type = None
|
||||
limit = None
|
||||
if info_dict["fstab"]:
|
||||
if mount_point == "/userdata": mount_point = "/data"
|
||||
p = info_dict["fstab"][mount_point]
|
||||
|
|
|
@ -269,11 +269,14 @@ def main(argv):
|
|||
|
||||
output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED)
|
||||
|
||||
common.GetBootableImage(
|
||||
"boot.img", "boot.img", OPTIONS.input_tmp, "BOOT").AddToZip(output_zip)
|
||||
common.GetBootableImage(
|
||||
"recovery.img", "recovery.img", OPTIONS.input_tmp,
|
||||
"RECOVERY").AddToZip(output_zip)
|
||||
boot_image = common.GetBootableImage(
|
||||
"boot.img", "boot.img", OPTIONS.input_tmp, "BOOT")
|
||||
if boot_image:
|
||||
boot_image.AddToZip(output_zip)
|
||||
recovery_image = common.GetBootableImage(
|
||||
"recovery.img", "recovery.img", OPTIONS.input_tmp, "RECOVERY")
|
||||
if recovery_image:
|
||||
recovery_image.AddToZip(output_zip)
|
||||
|
||||
if not bootable_only:
|
||||
AddSystem(output_zip)
|
||||
|
|
Loading…
Reference in a new issue