summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9319b3bddc..1b27c23500 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -194,6 +194,12 @@ $(out)/tags: $(out)/cscope.files
xrefs: $(call targ_if_prog,etags,$(out)/TAGS) \
$(call targ_if_prog,ctags,$(out)/tags)
+.PHONY: flash
+flash:
+ openocd -c "set BOARD $(BOARD)"\
+ -c "set BUILD_DIR $(out)"\
+ -f board/$(BOARD)/openocd-flash.cfg
+
.PHONY: clean
clean:
-rm -rf $(out)