Silence OpenOCD per default, use V=1 for more verbose output.

This commit is contained in:
Uwe Hermann 2009-07-18 05:23:56 +02:00
parent 8d2190a86a
commit 526cb01aaa

View File

@ -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