add vendor_boot image support
The vendor_boot partition is generated by mkbootimg and contains all the device-specific information that used to reside in the boot partition. Bug: 137297791 Change-Id: I5b005097b73f59857c3a2f92d693b3e67ee8424e
This commit is contained in:
@@ -673,6 +673,7 @@ def AddImagesToTargetFiles(filename):
|
||||
|
||||
has_recovery = OPTIONS.info_dict.get("no_recovery") != "true"
|
||||
has_boot = OPTIONS.info_dict.get("no_boot") != "true"
|
||||
has_vendor_boot = OPTIONS.info_dict.get("vendor_boot") == "true"
|
||||
|
||||
# {vendor,odm,product,system_ext}.img are unlike system.img or
|
||||
# system_other.img. Because it could be built from source, or dropped into
|
||||
@@ -734,6 +735,19 @@ def AddImagesToTargetFiles(filename):
|
||||
if output_zip:
|
||||
boot_image.AddToZip(output_zip)
|
||||
|
||||
if has_vendor_boot:
|
||||
banner("vendor_boot")
|
||||
vendor_boot_image = common.GetVendorBootImage(
|
||||
"IMAGES/vendor_boot.img", "vendor_boot.img", OPTIONS.input_tmp,
|
||||
"VENDOR_BOOT")
|
||||
if vendor_boot_image:
|
||||
partitions['vendor_boot'] = os.path.join(OPTIONS.input_tmp, "IMAGES",
|
||||
"vendor_boot.img")
|
||||
if not os.path.exists(partitions['vendor_boot']):
|
||||
vendor_boot_image.WriteToDir(OPTIONS.input_tmp)
|
||||
if output_zip:
|
||||
vendor_boot_image.AddToZip(output_zip)
|
||||
|
||||
recovery_image = None
|
||||
if has_recovery:
|
||||
banner("recovery")
|
||||
|
Reference in New Issue
Block a user