summaryrefslogtreecommitdiff
path: root/util/flash_ec
diff options
context:
space:
mode:
Diffstat (limited to 'util/flash_ec')
-rwxr-xr-xutil/flash_ec6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index caa9861007..c4112f31f1 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -149,7 +149,7 @@ BITBANG_RATE="57600" # Could be overwritten by a command line option.
DEFINE_integer bitbang_rate "${BITBANG_RATE}" \
"UART baud rate to use when bit bang programming, " \
"standard UART rates from 9600 to 57600 are supported."
-DEFINE_string board "${DEFAULT_BOARD}" \
+DEFINE_string board "" \
"The board to run debugger on."
DEFINE_string chip "" \
"The chip to run debugger on."
@@ -268,6 +268,10 @@ function dut_control_get_or_die {
: "${BOARD:=${FLAGS_board}}"
+if [ "${BOARD}" == "" ]; then
+ die "Must specify board."
+fi
+
in_array() {
local n=$#
local value=${!n}