diff options
author | Yilun Lin <yllin@chromium.org> | 2019-08-26 17:01:16 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-29 05:11:44 +0000 |
commit | 2c12e10279e792710b7c803547151679116e2866 (patch) | |
tree | d3fe32fd27be2b7341da459f501a4f6abba8168f | |
parent | 4646e28429402438a294b93685bcea1d97f02b4d (diff) | |
download | chrome-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>
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | Makefile.rules | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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 |