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

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

releasetools: Allow using futility-host to sign old TF.zip. am: 31a0de00 am:...

releasetools: Allow using futility-host to sign old TF.zip. am: 31a0de00 am: a9bdf871 am: ae2f5abf
am: 8101018e

Change-Id: I727b83eddf2e47410ab1e0f0d88f47dad586f181
parents 4d4ed973 8101018e
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -514,7 +514,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",