summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-04-12 15:09:05 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-04-16 04:58:05 -0700
commitdb914dee3b0718ad791765f70ee9be1223ca0d84 (patch)
treecfbb772eed7e9bfe58908ba9a384079fe2b8d6cd
parent7b01a7716c33c4c01907acc88adba7cc1c15199e (diff)
downloadchrome-ec-db914dee3b0718ad791765f70ee9be1223ca0d84.tar.gz
flash_fp_mcu: print canonical path
This avoids confusion when installing in /usr/local/bin vs /usr/bin. See https://crbug.com/341708 for more details. BRANCH=none BUG=chromium:952447 TEST=emerge-nocturne ec-utils-test && cros deploy nocturne ec-utils-test flash_fp_mcu /opt/google/biod/fw/nocturne_fp_v2.2.110-b936c0a3c.bin Change-Id: Ifba5c668613bc35e24d9466c6e7245b6b862fc90 Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1566650 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Nicolas Norvez <norvez@chromium.org>
-rw-r--r--util/flash_fp_mcu_common.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/flash_fp_mcu_common.sh b/util/flash_fp_mcu_common.sh
index 31c264b617..38528382eb 100644
--- a/util/flash_fp_mcu_common.sh
+++ b/util/flash_fp_mcu_common.sh
@@ -18,6 +18,10 @@ if [[ "$#" -eq 0 ]]; then
exit 1
fi
+# print out canonical path to differentiate between /usr/local/bin and
+# /usr/bin installs
+echo "$(readlink -f "$0")"
+
check_hardware_write_protect_disabled() {
if ectool gpioget EC_WP_L | grep -q '= 0'; then
echo "Please make sure WP is deasserted."