From 509339ce2b7499ccb90331ab6910b87d0f9889a5 Mon Sep 17 00:00:00 2001 From: C Shapiro Date: Tue, 22 Aug 2017 11:40:23 -0600 Subject: [PATCH] [unibuild] Support for unibuild firmware signing For design context, see go/cros-unibuild-signing This adds support for multiple, shared firmware images from a unified build that needs to be signed with different OEM specific keys. It uses a signer_config.csv file (that is generated by pack_firmware.py) to determine which images need to be signed with which keys. BUG=b:64842314 TEST=./build_image --board=coral dev && ./mod_image_for_recovery.sh --board=coral && ~/trunk/src/platform/vboot_reference/scripts/image_signing/sign_official_build.sh recovery ../build/images/coral/latest/recovery_image.bin ../platform/vboot_reference/tests/devkeys BRANCH=None Change-Id: Id3711bbe73dfe652184bc046b5f642c30b8d1627 Reviewed-on: https://chromium-review.googlesource.com/626718 Commit-Ready: C Shapiro Tested-by: C Shapiro Reviewed-by: C Shapiro --- scripts/image_signing/sign_official_build.sh | 96 +++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/scripts/image_signing/sign_official_build.sh b/scripts/image_signing/sign_official_build.sh index 579c581b94..cf0b33456c 100755 --- a/scripts/image_signing/sign_official_build.sh +++ b/scripts/image_signing/sign_official_build.sh @@ -20,6 +20,9 @@ # Load common constants and variables. . "$(dirname "$0")/common.sh" +# Which futility to run? +[ -z "${FUTILITY}" ] && FUTILITY=futility + # Print usage string usage() { cat <