aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-05-26 20:13:09 -0400
committerPerry Hung <iperry@gmail.com>2011-05-26 20:13:09 -0400
commit0e5eb75c80bd8036bf85bfe0cce09d1fce56f50a (patch)
tree29ecc8547a8f10902dfc1d50cd57354e402be0a0 /Makefile
parent2ea08f3e09f0daac5f7bb992afa7f89b36877d31 (diff)
openocd: Detect openocd version
Small script to detect the openocd version and choose the appropriate debug/flash script for use with JTAG debugging.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d0cead4..e2b59b4 100644
--- a/Makefile
+++ b/Makefile
@@ -109,7 +109,7 @@ UPLOAD_ram := $(SUPPORT_PATH)/scripts/reset.py && \
UPLOAD_flash := $(SUPPORT_PATH)/scripts/reset.py && \
sleep 1 && \
$(DFU) -a1 -d $(VENDOR_ID):$(PRODUCT_ID) -D $(BUILD_PATH)/$(BOARD).bin -R
-UPLOAD_jtag := $(OPENOCD) -f support/openocd/flash.cfg
+UPLOAD_jtag := $(OPENOCD_WRAPPER) flash
# conditionally upload to whatever the last build was
install: INSTALL_TARGET = $(shell cat $(BUILD_PATH)/build-type 2>/dev/null)
@@ -149,7 +149,7 @@ help:
@echo " "
debug:
- $(OPENOCD) -f support/openocd/run.cfg
+ $(OPENOCD_WRAPPER) debug
cscope:
rm -rf *.cscope