Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: scripts/image_signing/sign_official_build.sh

Issue 6594131: Add support for using separate developer firmware keyblock while signing. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: fix typo Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « scripts/image_signing/resign_firmwarefd.sh ('k') | scripts/keygeneration/common.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Sign the final build image using the "official" keys. 7 # Sign the final build image using the "official" keys.
8 # 8 #
9 # Prerequisite tools needed in the system path: 9 # Prerequisite tools needed in the system path:
10 # 10 #
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 else 254 else
255 gbb_utility -s \ 255 gbb_utility -s \
256 --rootkey=${KEY_DIR}/root_key.vbpubk \ 256 --rootkey=${KEY_DIR}/root_key.vbpubk \
257 --recoverykey=${KEY_DIR}/recovery_key.vbpubk \ 257 --recoverykey=${KEY_DIR}/recovery_key.vbpubk \
258 ${shellball_dir}/bios.bin ${temp_outfd} 258 ${shellball_dir}/bios.bin ${temp_outfd}
259 fi 259 fi
260 # Resign the firmware with new keys 260 # Resign the firmware with new keys
261 ${SCRIPT_DIR}/resign_firmwarefd.sh ${temp_outfd} ${shellball_dir}/bios.bin \ 261 ${SCRIPT_DIR}/resign_firmwarefd.sh ${temp_outfd} ${shellball_dir}/bios.bin \
262 ${KEY_DIR}/firmware_data_key.vbprivk \ 262 ${KEY_DIR}/firmware_data_key.vbprivk \
263 ${KEY_DIR}/firmware.keyblock \ 263 ${KEY_DIR}/firmware.keyblock \
264 ${KEY_DIR}/dev_firmware_data_key.vbprivk \
265 ${KEY_DIR}/dev_firmware.keyblock \
264 ${KEY_DIR}/kernel_subkey.vbpubk \ 266 ${KEY_DIR}/kernel_subkey.vbpubk \
265 ${FIRMWARE_VERSION} 267 ${FIRMWARE_VERSION}
266 268
267 # Replace MD5 checksum in the firmware update payload 269 # Replace MD5 checksum in the firmware update payload
268 newfd_checksum=$(md5sum ${shellball_dir}/bios.bin | cut -f 1 -d ' ') 270 newfd_checksum=$(md5sum ${shellball_dir}/bios.bin | cut -f 1 -d ' ')
269 temp_version=$(make_temp_file) 271 temp_version=$(make_temp_file)
270 cat ${shellball_dir}/VERSION | 272 cat ${shellball_dir}/VERSION |
271 sed -e "s#\(.*\)\ \(.*bios.bin.*\)#${newfd_checksum}\ \2#" > ${temp_version} 273 sed -e "s#\(.*\)\ \(.*bios.bin.*\)#${newfd_checksum}\ \2#" > ${temp_version}
272 sudo cp ${temp_version} ${shellball_dir}/VERSION 274 sudo cp ${temp_version} ${shellball_dir}/VERSION
273 275
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 resign_firmware_payload ${INPUT_IMAGE} 483 resign_firmware_payload ${INPUT_IMAGE}
482 update_rootfs_hash ${INPUT_IMAGE} \ 484 update_rootfs_hash ${INPUT_IMAGE} \
483 ${KEY_DIR}/installer_kernel.keyblock \ 485 ${KEY_DIR}/installer_kernel.keyblock \
484 ${KEY_DIR}/installer_kernel_data_key.vbprivk \ 486 ${KEY_DIR}/installer_kernel_data_key.vbprivk \
485 2 487 2
486 sign_for_factory_install 488 sign_for_factory_install
487 else 489 else
488 echo "Invalid type ${TYPE}" 490 echo "Invalid type ${TYPE}"
489 exit 1 491 exit 1
490 fi 492 fi
OLDNEW
« no previous file with comments | « scripts/image_signing/resign_firmwarefd.sh ('k') | scripts/keygeneration/common.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698