From 26a8e16de164cd9a91e70e7d4f6ee9556f8e687f Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Tue, 10 Oct 2017 09:56:49 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/709739 Reviewed-by: Mary Ruthven --- util/signer/create_released_image.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util') 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 -- cgit v1.2.1