Merge "Skip some build steps if not building system image." am: 4a3c68bffa
am: 8a4041a18e
Change-Id: I17249226965c48c599da4a6f932e4d63b0c7a5d0
This commit is contained in:
@@ -734,6 +734,7 @@ def AddImagesToTargetFiles(filename):
|
|||||||
os.path.exists(os.path.join(OPTIONS.input_tmp,
|
os.path.exists(os.path.join(OPTIONS.input_tmp,
|
||||||
"IMAGES",
|
"IMAGES",
|
||||||
"product_services.img")))
|
"product_services.img")))
|
||||||
|
has_system = os.path.isdir(os.path.join(OPTIONS.input_tmp, "SYSTEM"))
|
||||||
has_system_other = os.path.isdir(os.path.join(OPTIONS.input_tmp,
|
has_system_other = os.path.isdir(os.path.join(OPTIONS.input_tmp,
|
||||||
"SYSTEM_OTHER"))
|
"SYSTEM_OTHER"))
|
||||||
|
|
||||||
@@ -798,9 +799,10 @@ def AddImagesToTargetFiles(filename):
|
|||||||
if output_zip:
|
if output_zip:
|
||||||
recovery_two_step_image.AddToZip(output_zip)
|
recovery_two_step_image.AddToZip(output_zip)
|
||||||
|
|
||||||
banner("system")
|
if has_system:
|
||||||
partitions['system'] = AddSystem(
|
banner("system")
|
||||||
output_zip, recovery_img=recovery_image, boot_img=boot_image)
|
partitions['system'] = AddSystem(
|
||||||
|
output_zip, recovery_img=recovery_image, boot_img=boot_image)
|
||||||
|
|
||||||
if has_vendor:
|
if has_vendor:
|
||||||
banner("vendor")
|
banner("vendor")
|
||||||
|
Reference in New Issue
Block a user