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

Commit 2e449647 authored by David Anderson's avatar David Anderson Committed by Gerrit Code Review
Browse files

Merge "releasetools: Pass --virtual-ab to lpmake."

parents ff81b9d1 117b52f7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -76,6 +76,8 @@ def BuildSuperImageFromDict(info_dict, output):
         "--super-name", info_dict["super_metadata_device"]]

  ab_update = info_dict.get("ab_update") == "true"
  virtual_ab = info_dict.get("virtual_ab") == "true"
  virtual_ab_retrofit = info_dict.get("virtual_ab_retrofit") == "true"
  retrofit = info_dict.get("dynamic_partition_retrofit") == "true"
  block_devices = shlex.split(info_dict.get("super_block_devices", "").strip())
  groups = shlex.split(info_dict.get("super_partition_groups", "").strip())
@@ -89,6 +91,8 @@ def BuildSuperImageFromDict(info_dict, output):

  if ab_update and retrofit:
    cmd.append("--auto-slot-suffixing")
  if virtual_ab and not virtual_ab_retrofit:
    cmd.append("--virtual-ab")

  for device in block_devices:
    size = info_dict["super_{}_device_size".format(device)]