From fdf8bc8fdb9b7a0d8c602564cc2325ee88f7cb7c Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 9 Oct 2017 20:46:54 +0200 Subject: [PATCH] openocd: simplify openocd call in Makefile --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1e8dc46af..dd276cb3e 100644 --- a/Makefile +++ b/Makefile @@ -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: