summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2014-07-30 10:15:04 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-07-30 23:42:32 +0000
commit68dd21c56077171426928e9e12ee6c1c656846af (patch)
treef61c684cab30ee109c3eba346586ba140cb5a4f0
parent947f7ff93679a9ecff2acde78f2bdd292299b04c (diff)
downloadchrome-ec-68dd21c56077171426928e9e12ee6c1c656846af.tar.gz
Fix flash_ec so that it finds stm32mon
If chromeos-ec package hasn't been built, flash_ec tries to find stm32mon in local build/ directory. However, this is broken in the last CL when we move away from crosutils. Let's fix it. BUG=chromium:397202 TEST=Flash samus_pd BRANCH=None Change-Id: I05395a727fa965032a24f51c07deaebf2d7c7e51 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/210419 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rwxr-xr-xutil/flash_ec2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 4854846be1..5658b8039d 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -228,7 +228,7 @@ function free_pty() {
# Board specific flashing scripts
function flash_stm32() {
- TOOL_PATH="${SCRIPT_LOCATION}/../build/${BOARD}/util:$PATH"
+ TOOL_PATH="${SCRIPT_DIR}/../build/${BOARD}/util:$PATH"
STM32MON=$(PATH="${TOOL_PATH}" which stm32mon)
if [ ! -x "$STM32MON" ]; then
die "no stm32mon util found."