summaryrefslogtreecommitdiff
path: root/util/signer/create_released_image.sh
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-09-06 15:51:46 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-10 22:13:43 -0700
commita08f61506cc71b690858e51da905c7dcb2d7ef10 (patch)
tree7f504d1fdaa6c6a8630656e95f1ed15e2b774d4d /util/signer/create_released_image.sh
parentf1e6af516c87623f475900f8fc85cb9c40668092 (diff)
downloadchrome-ec-a08f61506cc71b690858e51da905c7dcb2d7ef10.tar.gz
g: rename usb_updater into gsctool
The usb_updater utility has long been not just an updater, and has long been using other interfaces in addition to USB. gsctool is a much more suitable name. CQ-DEPEND=CL:709776 BRANCH=cr50 BUG=b:67007500 TEST=verified that make -C ./extra/usb_updater generates ./extra/usb_updater/gsctool: $ ./extra/usb_updater/gsctool --help Usage: gsctool [options] <binary image> This updates the Cr50 RW firmware over USB. The required argument is the full RO+RW image. Options: [...] $ Change-Id: I3ab70c28acf3664ddefaa923a87ba1fd5c3c437b Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/709738 Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'util/signer/create_released_image.sh')
-rwxr-xr-xutil/signer/create_released_image.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/signer/create_released_image.sh b/util/signer/create_released_image.sh
index da6f992d26..79b9c65055 100755
--- a/util/signer/create_released_image.sh
+++ b/util/signer/create_released_image.sh
@@ -91,7 +91,7 @@ prepare_image() {
dd if="${TMPD}/0.bin" of="${RESULT_FILE}" conv=notrunc
dd if="${TMPD}/1.bin" of="${RESULT_FILE}" seek=262144 bs=1 conv=notrunc
- # A typical Cr50 version reported by usb_updater looks as follows:
+ # A typical Cr50 version reported by gsctool looks as follows:
# RO_A:0.0.10 RW_A:0.0.22[ABCD:00000013:00000012] ...(the same for R[OW]_B).
#
# In case Board ID field is not set in the image, it is reported as
@@ -125,7 +125,7 @@ prepare_image() {
print "r" $1 ".w" $2
}'
- raw_version="$("${USB_UPDATER}" -b "${RESULT_FILE}")" ||
+ raw_version="$("${GSCTOOL}" -b "${RESULT_FILE}")" ||
( echo "${ME}: Failed to retrieve blob version" >&2 && exit 1 )
version="$(awk "${awk_prog}" <<< "${raw_version}" )"
@@ -166,9 +166,9 @@ dest_dir=
IMAGE_SIZE='524288'
export RESULT_FILE
-USB_UPDATER="${EC_ROOT}/extra/usb_updater/usb_updater"
-if [[ ! -x "${USB_UPDATER}" ]]; then
- echo "${ME}: usb_updater not found, run \"make -C extra/usb_updater\"" >&2
+GSCTOOL="${EC_ROOT}/extra/usb_updater/gsctool"
+if [[ ! -x "${GSCTOOL}" ]]; then
+ echo "${ME}: gsctool not found, run \"make -C extra/usb_updater\"" >&2
exit 1
fi