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

Commit 38a54546 authored by Tao Bao's avatar Tao Bao Committed by android-build-merger
Browse files

Merge "Consider prebuilt vendor.img as having vendor partition." am: 8a7b0dee am: 4a5a1e15

am: e45026ef

Change-Id: I50ed26b5bc532d37ddc3d30a915c183974ad34fa
parents def9b770 e45026ef
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -505,7 +505,13 @@ def AddImagesToTargetFiles(filename):
      print("target_files appears to already contain images.")
      sys.exit(1)

  has_vendor = os.path.isdir(os.path.join(OPTIONS.input_tmp, "VENDOR"))
  # vendor.img is unlike system.img or system_other.img. Because it could be
  # built from source, or dropped into target_files.zip as a prebuilt blob. We
  # consider either of them as vendor.img being available, which could be used
  # when generating vbmeta.img for AVB.
  has_vendor = (os.path.isdir(os.path.join(OPTIONS.input_tmp, "VENDOR")) or
                os.path.exists(os.path.join(OPTIONS.input_tmp, "IMAGES",
                                            "vendor.img")))
  has_system_other = os.path.isdir(os.path.join(OPTIONS.input_tmp,
                                                "SYSTEM_OTHER"))