diff options
author | Anton Staaf <robotboy@chromium.org> | 2015-05-19 14:41:10 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-26 19:36:10 +0000 |
commit | 2a4ac55edfbbbdcde605c323e07effcca5716e6f (patch) | |
tree | c29f84a9e336e3be8dd544298adc45f2f0b7a110 /Makefile.rules | |
parent | ba81b5ef8638daf0ce22f7fef16a5995f286c450 (diff) | |
download | chrome-ec-2a4ac55edfbbbdcde605c323e07effcca5716e6f.tar.gz |
Flashing: Add flash_ec rule to simplify flashing
The flash_ec rule calls the flash_ec tool, passing the inferred board
and image based on where make was run. This means that from a board
directory you can run "make flash_ec" and an up to date image will be
flashed using flash_ec.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
cd board/ryu_p4p5
make flash_ec
Change-Id: I51e2a62f4d0de427f8d36e0848941aef742e0d3d
Reviewed-on: https://chromium-review.googlesource.com/272264
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Trybot-Ready: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 96d2465078..dad3533803 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -276,6 +276,10 @@ flash: $(out)/ec.bin -c "set BUILD_DIR $(out)"\ -f board/$(BOARD)/openocd-flash.cfg +.PHONY: flash_ec +flash_ec: $(out)/ec.bin + ./util/flash_ec --board $(BOARD) --image $(out)/ec.bin + .PHONY: clean clean: -rm -rf $(out) |