forked from openkylin/platform_build
Merge "Revert "releasetools: Allow using futility-host to sign old TF.zip."" into nyc-dev am: b0df1ef7ac
am: 983c979c25
Change-Id: I938ee86611ea8c452c07324e2f3c6a9b0180cb7e
This commit is contained in:
commit
bd6d03ab18
|
@ -514,13 +514,7 @@ def _BuildBootableImage(sourcedir, fs_config_file, info_dict=None,
|
||||||
elif info_dict.get("vboot", None):
|
elif info_dict.get("vboot", None):
|
||||||
path = "/" + os.path.basename(sourcedir).lower()
|
path = "/" + os.path.basename(sourcedir).lower()
|
||||||
img_keyblock = tempfile.NamedTemporaryFile()
|
img_keyblock = tempfile.NamedTemporaryFile()
|
||||||
# We have switched from the prebuilt futility binary to using the tool
|
cmd = [info_dict["vboot_signer_cmd"], info_dict["futility"],
|
||||||
# (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",
|
img_unsigned.name, info_dict["vboot_key"] + ".vbpubk",
|
||||||
info_dict["vboot_key"] + ".vbprivk",
|
info_dict["vboot_key"] + ".vbprivk",
|
||||||
info_dict["vboot_subkey"] + ".vbprivk",
|
info_dict["vboot_subkey"] + ".vbprivk",
|
||||||
|
|
Loading…
Reference in New Issue