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

Commit 317d1594 authored by Tianjie Xu's avatar Tianjie Xu Committed by android-build-merger
Browse files

Merge \\"Skip copying existing vendor images\\" am: 1767d3f9

am: 85da4d35

Change-Id: I3d5ff34f134f674cbec66978385ad3936e9c119d
parents 3fc2a2c3 85da4d35
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -396,12 +396,18 @@ def AddImagesToTargetFiles(filename):
  # For devices using A/B update, copy over images from RADIO/ and/or
  # VENDOR_IMAGES/ to IMAGES/ and make sure we have all the needed
  # images ready under IMAGES/. All images should have '.img' as extension.
  banner("radio")
  ab_partitions = os.path.join(OPTIONS.input_tmp, "META", "ab_partitions.txt")
  if os.path.exists(ab_partitions):
    with open(ab_partitions, 'r') as f:
      lines = f.readlines()
    for line in lines:
      img_name = line.strip() + ".img"
      prebuilt_path = os.path.join(OPTIONS.input_tmp, "IMAGES", img_name)
      if os.path.exists(prebuilt_path):
        print "%s already exists, no need to overwrite..." % (img_name,)
        continue

      img_radio_path = os.path.join(OPTIONS.input_tmp, "RADIO", img_name)
      img_vendor_dir = os.path.join(
        OPTIONS.input_tmp, "VENDOR_IMAGES")