summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules4
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)