Loading tools/releasetools/add_img_to_target_files.py +5 −0 Original line number Diff line number Diff line Loading @@ -197,6 +197,7 @@ def AddVendor(output_zip): img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "vendor.img") if os.path.exists(img.name): logger.info("vendor.img already exists; no need to rebuild...") img.Write() return img.name block_list = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "vendor.map") Loading @@ -212,6 +213,7 @@ def AddProduct(output_zip): img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "product.img") if os.path.exists(img.name): logger.info("product.img already exists; no need to rebuild...") img.Write() return img.name block_list = OutputFile( Loading @@ -230,6 +232,7 @@ def AddProductServices(output_zip): "product_services.img") if os.path.exists(img.name): logger.info("product_services.img already exists; no need to rebuild...") img.Write() return img.name block_list = OutputFile( Loading @@ -246,6 +249,7 @@ def AddOdm(output_zip): img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "odm.img") if os.path.exists(img.name): logger.info("odm.img already exists; no need to rebuild...") img.Write() return img.name block_list = OutputFile( Loading @@ -265,6 +269,7 @@ def AddDtbo(output_zip): img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "dtbo.img") if os.path.exists(img.name): logger.info("dtbo.img already exists; no need to rebuild...") img.Write() return img.name dtbo_prebuilt_path = os.path.join( Loading Loading
tools/releasetools/add_img_to_target_files.py +5 −0 Original line number Diff line number Diff line Loading @@ -197,6 +197,7 @@ def AddVendor(output_zip): img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "vendor.img") if os.path.exists(img.name): logger.info("vendor.img already exists; no need to rebuild...") img.Write() return img.name block_list = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "vendor.map") Loading @@ -212,6 +213,7 @@ def AddProduct(output_zip): img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "product.img") if os.path.exists(img.name): logger.info("product.img already exists; no need to rebuild...") img.Write() return img.name block_list = OutputFile( Loading @@ -230,6 +232,7 @@ def AddProductServices(output_zip): "product_services.img") if os.path.exists(img.name): logger.info("product_services.img already exists; no need to rebuild...") img.Write() return img.name block_list = OutputFile( Loading @@ -246,6 +249,7 @@ def AddOdm(output_zip): img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "odm.img") if os.path.exists(img.name): logger.info("odm.img already exists; no need to rebuild...") img.Write() return img.name block_list = OutputFile( Loading @@ -265,6 +269,7 @@ def AddDtbo(output_zip): img = OutputFile(output_zip, OPTIONS.input_tmp, "IMAGES", "dtbo.img") if os.path.exists(img.name): logger.info("dtbo.img already exists; no need to rebuild...") img.Write() return img.name dtbo_prebuilt_path = os.path.join( Loading