aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorUwe Hermann2009-07-18 05:23:56 +0200
committerUwe Hermann2009-07-18 05:23:56 +0200
commit526cb01aaa39617c4fc8db2edb7416cefd37b8f5 (patch)
tree3c99d7bbfe0f5fc36c8d594f95e030706ff60799 /example
parent8d2190a86a3edfbceb23539c313a5df78d1032a3 (diff)
Silence OpenOCD per default, use V=1 for more verbose output.
Diffstat (limited to 'example')
-rw-r--r--example/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/example/Makefile b/example/Makefile
index 7944e26..23d07e5 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -35,6 +35,7 @@ OPENOCD = openocd
# Be silent per default, but 'make V=1' will show all compiler calls.
ifneq ($(V),1)
Q := @
+NULL := 2>/dev/null
endif
all: images
@@ -72,13 +73,14 @@ clean:
$(Q)rm -f $(BINARY).list
flash: images
+ @printf " FLASH $(BINARY).bin\n"
@# IMPORTANT: Don't use "resume", only "reset" will work correctly!
$(Q)$(OPENOCD) -f interface/jtagkey-tiny.cfg \
-f board/olimex_stm32_h103.cfg \
-c "init" -c "reset halt" \
-c "flash write_image erase $(BINARY).bin 0x08000000" \
-c "reset" \
- -c "shutdown"
+ -c "shutdown" $(NULL)
.PHONY: images clean