AU: Add a private_key option to cros_generate_update_payload.

BUG=5663
TEST=generated a delta payload

Change-Id: I62f2fae07152f67ecbf64d16948e6add1c6ba3db

Review URL: http://codereview.chromium.org/3548013
This commit is contained in:
Darin Petkov 2010-10-05 10:44:06 -07:00
parent af33f8f8ae
commit c90b71ed1f

View File

@ -99,6 +99,7 @@ DEFINE_boolean old_style "$FLAGS_TRUE" "Generate an old-style .gz full update."
DEFINE_string output "" "Output file"
DEFINE_boolean patch_kernel "$FLAGS_FALSE" "Whether or not to patch the kernel \
with the patch from the stateful partition (default: false)"
DEFINE_string private_key "" "Path to private key in .pem format."
# Parse command line
FLAGS "$@" || exit 1
@ -160,7 +161,7 @@ if [ "$DELTA" -eq "$FLAGS_TRUE" ]; then
sudo "$GENERATOR" \
-new_dir "$DST_MNT" -new_image "$DST_ROOT" -new_kernel "$DST_KERNEL" \
-old_dir "$SRC_MNT" -old_image "$SRC_ROOT" -old_kernel "$SRC_KERNEL" \
-out_file "$FLAGS_output"
-out_file "$FLAGS_output" -private_key "$FLAGS_private_key"
trap - INT TERM EXIT
cleanup noexit