diff options
author | Mike Frysinger <vapier@chromium.org> | 2017-05-09 01:24:11 -0400 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-13 11:53:20 -0700 |
commit | 9e7caccd3556f7b29246df69af54a8bfbae2e489 (patch) | |
tree | 6d72fd70d0b93d9a17f472b4651f78c3b832cf3f | |
parent | 3c8496cc86e60dd2698e17436d435d9b8260ce2f (diff) | |
download | vboot-9e7caccd3556f7b29246df69af54a8bfbae2e489.tar.gz |
image_signing: resign_image.sh: drop unused script
This script hasn't been executed by image_signing or the cros-signer
code, and cs/ doesn't turn up any hits. Scrub it from the codebase.
BRANCH=None
BUG=chromium:714598
TEST=signing images still works
Change-Id: Ief4256a8ceab753d5c1fd6d0f3d81609e11f62a9
Reviewed-on: https://chromium-review.googlesource.com/500329
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: David Riley <davidriley@chromium.org>
-rwxr-xr-x | scripts/image_signing/resign_image.sh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/scripts/image_signing/resign_image.sh b/scripts/image_signing/resign_image.sh deleted file mode 100755 index 9cdc1def..00000000 --- a/scripts/image_signing/resign_image.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Standalone version of cros_resign_image.sh script from -# chromeos/src/scripts/bin/ for use on signing servers. - -# Both the cgpt tool and vbutil_kernel should be in the system path. - -# Load common constants and variables. -. "$(dirname "$0")/common.sh" - -# Abort on error -set -e - -# Check arguments -if [ $# -lt 4 ] || [ $# -gt 5 ] ; then - echo "usage: $PROG src_bin dst_bin kernel_datakey kernel_keyblock [version]" - exit 1 -fi - -# Make sure the tools we need are available. -for prereqs in vbutil_kernel cgpt; -do - type -P "${prereqs}" &>/dev/null || \ - { echo "${prereqs} tool not found."; exit 1; } -done - -SRC_BIN=$1 -DST_BIN=$2 -KERNEL_DATAKEY=$3 -KERNEL_KEYBLOCK=$4 -VERSION=$5 - -if [ -z $VERSION ]; then - VERSION=1 -fi -echo "Using kernel version: $VERSION" - -temp_kimage=$(make_temp_file) -extract_image_partition ${SRC_BIN} 2 ${temp_kimage} -updated_kimage=$(make_temp_file) - -vbutil_kernel --repack "${updated_kimage}" \ - --keyblock "${KERNEL_KEYBLOCK}" \ - --signprivate "${KERNEL_DATAKEY}" \ - --version "${VERSION}" \ - --oldblob "${temp_kimage}" - -# Create a copy of the input image and put in the new vblock -cp "${SRC_BIN}" "${DST_BIN}" -replace_image_partition ${DST_BIN} 2 ${updated_kimage} -echo "New signed image was output to ${DST_BIN}" - |