releasetools: Allow using futility-host to sign old TF.zip. am: 31a0de00a4
am: a9bdf8716f
am: ae2f5abf06
Change-Id: I514c69dca1aede0fe047682dab9b11e7263d7634
This commit is contained in:
commit
79d719b313
1 changed files with 7 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue