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

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

Merge "releasetools: Allow using futility-host to sign old TF.zip."

am: 48a3ccbf

Change-Id: I6efee0b3a6c5b4c7d9cf3ca90a0e2e4c39470853
parents dc7d29ed 48a3ccbf
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -518,7 +518,13 @@ def _BuildBootableImage(sourcedir, fs_config_file, info_dict=None,
  elif info_dict.get("vboot", None):
    path = "/" + os.path.basename(sourcedir).lower()
    img_keyblock = tempfile.NamedTemporaryFile()
    cmd = [info_dict["vboot_signer_cmd"], info_dict["futility"],
    # We have switched from the prebuilt futility binary to using the tool
    # (futility-host) built from the source. Override the setting in the old
    # TF.zip.
    futility = info_dict["futility"]
    if futility.startswith("prebuilts/"):
      futility = "futility-host"
    cmd = [info_dict["vboot_signer_cmd"], futility,
           img_unsigned.name, info_dict["vboot_key"] + ".vbpubk",
           info_dict["vboot_key"] + ".vbprivk",
           info_dict["vboot_subkey"] + ".vbprivk",