forked from openkylin/platform_build
Revert "Revert "releasetools: Allow using futility-host to sign old TF.zip.""
This reverts commitd6145b6a16
. The cause of the earlier breakage has been identified and fixed by commit4b577413ff
. Bug: 35467608 Test: lunch ryu-userdebug; m dist otatools-package (cherry picked from commit4f30f7cfa1
)
This commit is contained in:
parent
69ad150dd3
commit
77620b5a45
|
@ -497,7 +497,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 New Issue