Merge "releasetools: Allow using futility-host to sign old TF.zip." am: 48a3ccbf1b am: aa778c7af4

am: 45d092498a

Change-Id: Iffb49096716087c9da0b2ec829ec4fdee75c8072
This commit is contained in:
Tao Bao 2017-02-18 23:03:26 +00:00 committed by android-build-merger
commit b2b5b5933f
1 changed files with 7 additions and 1 deletions

View File

@ -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",