From ca8c372e60d249cc49ecaf1d33ace2d53caadfae Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Tue, 30 Oct 2012 16:34:55 +0800 Subject: [PATCH] sign_official_build: Support signing additional RW firmware in shellball. There will be more bios*.bin (ex, bios_rw.bin) in firmware updater, and we do want to sign all files. BRANCH=signer BUG=chromium-os:35369 TEST=sign_official_build.sh ssd DEV_IMAGE ../../tests/devkeys Change-Id: I2ea0c5c3d7a18c43df581f50b4bd907206dcd7ad Reviewed-on: https://gerrit.chromium.org/gerrit/36890 Tested-by: Hung-Te Lin Reviewed-by: Mike Frysinger Reviewed-by: Simon Glass Reviewed-by: Gaurav Shah Commit-Ready: Hung-Te Lin --- scripts/image_signing/sign_official_build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/image_signing/sign_official_build.sh b/scripts/image_signing/sign_official_build.sh index 08febc6d28..0f9691ffb7 100755 --- a/scripts/image_signing/sign_official_build.sh +++ b/scripts/image_signing/sign_official_build.sh @@ -390,7 +390,10 @@ resign_firmware_payload() { return; } echo "Found a valid firmware update shellball." - sign_firmware ${shellball_dir}/bios.bin ${KEY_DIR} ${FIRMWARE_VERSION} + local image_file + for image_file in "${shellball_dir}"/bios*.bin; do + sign_firmware "${image_file}" ${KEY_DIR} ${FIRMWARE_VERSION} + done local signer_notes="${shellball_dir}/VERSION.signer" echo "" >"$signer_notes"