summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmey Deshpande <ameyd@google.com>2015-08-14 14:51:21 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-18 01:46:10 +0000
commitd8ace3dee99487a77be0057e7872b0b5b3a05c0b (patch)
treefdccd42aa25bcbc07f9e80288c3837527de8453e
parent831f91315ba24ae24e476c7683f0d393f807d779 (diff)
downloadvboot-stabilize-7374.B.tar.gz
sign_official_build: support signing 'base' image typestabilize-7374.B
BRANCH=signer BUG=chromium:512940 TEST=Tested with the following command: $ ./sign_official_build.sh base chromiumos_base_image.bin ../../tests/devkeys \ chromiumos_base_image_signed.bin ../../tests/devkeys/key.versions Change-Id: Ife2284a6ca82f4306ca26278159859928c0ff2b5 Reviewed-on: https://chromium-review.googlesource.com/293636 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Amey Deshpande <ameyd@google.com> Commit-Queue: Amey Deshpande <ameyd@google.com>
-rwxr-xr-xscripts/image_signing/sign_official_build.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/image_signing/sign_official_build.sh b/scripts/image_signing/sign_official_build.sh
index 52721063..5bd23fe9 100755
--- a/scripts/image_signing/sign_official_build.sh
+++ b/scripts/image_signing/sign_official_build.sh
@@ -26,6 +26,7 @@ usage() {
Usage: $PROG <type> input_image /path/to/keys/dir [output_image] [version_file]
where <type> is one of:
ssd (sign an SSD image)
+ base (sign a base image, similar to an SSD image)
recovery (sign a USB recovery image)
factory (sign a factory install image)
install (old alias to "factory")
@@ -718,7 +719,7 @@ echo "Using firmware version: ${FIRMWARE_VERSION}"
echo "Using kernel version: ${KERNEL_VERSION}"
# Make all modifications on output copy.
-if [[ "${TYPE}" == "ssd" ]]; then
+if [[ "${TYPE}" == "ssd" || "${TYPE}" == "base" ]]; then
sign_image_file "SSD" "${INPUT_IMAGE}" "${OUTPUT_IMAGE}" 2 \
"${KEY_DIR}/kernel.keyblock" "${KEY_DIR}/kernel_data_key.vbprivk" \
"${KEY_DIR}/kernel.keyblock" "${KEY_DIR}/kernel_data_key.vbprivk"