summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYilun Lin <yllin@chromium.org>2019-08-26 17:01:16 +0800
committerCommit Bot <commit-bot@chromium.org>2019-08-29 05:11:44 +0000
commit2c12e10279e792710b7c803547151679116e2866 (patch)
treed3fe32fd27be2b7341da459f501a4f6abba8168f /Makefile
parent4646e28429402438a294b93685bcea1d97f02b4d (diff)
downloadchrome-ec-2c12e10279e792710b7c803547151679116e2866.tar.gz
makefile: support PORT for flash_ec
Add variable PORT to select the flashing port. TEST=make BOARD=kukui flash_ec PORT=9998, and flash success BUG=none BRANCH=none Change-Id: Ic9ba318ffee70ec1f7789f2dcccc6025263e5436 Signed-off-by: Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1770330 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 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 ?=