Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 669314f6 authored by Jackeagle's avatar Jackeagle
Browse files

Update add_img_to_target_files.py

parent ad146d67
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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")
@@ -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(
@@ -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(
@@ -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(
@@ -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(