openocd: simplify openocd call in Makefile

pull/25/head
Pavol Rusnak 7 years ago
parent 8e96978ce2
commit fdf8bc8fdb
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -25,11 +25,8 @@ ifeq ($(DISPLAY_VSYNC), 0)
CFLAGS += -DDISPLAY_VSYNC=0
endif
ifeq ($(STLINKv21), 1)
OPENOCD = openocd -f interface/stlink-v2-1.cfg -c "transport select hla_swd" -f target/stm32f4x.cfg
else
OPENOCD = openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg
endif
STLINK_VER ?= v2
OPENOCD = openocd -f interface/stlink-$(STLINK_VER).cfg -c "transport select hla_swd" -f target/stm32f4x.cfg
## help commands:

Loading…
Cancel
Save