summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--Makefile.rules2
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0a8177e68c..41e87a173b 100644
--- a/Makefile
+++ b/Makefile
@@ -64,6 +64,9 @@ PEM ?= $(BDIR)/dev_key.pem
# If no bootblock is provided, just pack an empty file.
BOOTBLOCK ?=
+# Port for flash_ec. Defaults to 9999.
+PORT ?= 9999
+
# If CONFIG_TOUCHPAD_HASH_FW is set, include hashes of a touchpad firmware in
# the EC image (if no touchpad firmware is provided, just output blank hashes).
TOUCHPAD_FW ?=
diff --git a/Makefile.rules b/Makefile.rules
index 1279640453..1cef50aee8 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -624,7 +624,7 @@ flash: $(out)/ec.bin
.PHONY: flash_ec
flash_ec: $(out)/ec.bin
- ./util/flash_ec --board $(BOARD) --image $(out)/ec.bin
+ ./util/flash_ec --board $(BOARD) --image $(out)/ec.bin --port $(PORT)
.PHONY: flash_dfu
flash_dfu: $(out)/ec.bin