summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-10-10 09:56:49 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-16 18:17:35 -0700
commit26a8e16de164cd9a91e70e7d4f6ee9556f8e687f (patch)
tree8264408dc948a1e64214f97fb70a3e00d0f48125
parentb2d6bf0ada32042692bfec9ae03586ff0eefe0b7 (diff)
downloadchrome-ec-26a8e16de164cd9a91e70e7d4f6ee9556f8e687f.tar.gz
util: let cr50 signer use chroot version of gsctool
Requiring installation of the gsctool locally in the EC tree could collide with debug versions or executables built for wrong architectures. Let's use the version installed in chroot and give user instructions how to install it if it is not there. BRANCH=cr50 BUG=none TEST=verified that create_released_image.sh still works with the chroot version of the tool Change-Id: Ib155e166297d28c1660f7f33bb000b3bb8fe7a15 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/709739 Reviewed-by: Mary Ruthven <mruthven@chromium.org>
-rwxr-xr-xutil/signer/create_released_image.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/signer/create_released_image.sh b/util/signer/create_released_image.sh
index 79b9c65055..9dccd02aba 100755
--- a/util/signer/create_released_image.sh
+++ b/util/signer/create_released_image.sh
@@ -166,9 +166,10 @@ dest_dir=
IMAGE_SIZE='524288'
export RESULT_FILE
-GSCTOOL="${EC_ROOT}/extra/usb_updater/gsctool"
+GSCTOOL="/usr/sbin/gsctool"
if [[ ! -x "${GSCTOOL}" ]]; then
- echo "${ME}: gsctool not found, run \"make -C extra/usb_updater\"" >&2
+ emerge_command="USE=cr50_onboard sudo -E emerge ec-utils"
+ echo "${ME}: gsctool not found, run \"${emerge_command}\"" >&2
exit 1
fi