mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 01:18:28 +00:00
openocd: simplify openocd call in Makefile
This commit is contained in:
parent
8e96978ce2
commit
fdf8bc8fdb
7
Makefile
7
Makefile
@ -25,11 +25,8 @@ ifeq ($(DISPLAY_VSYNC), 0)
|
|||||||
CFLAGS += -DDISPLAY_VSYNC=0
|
CFLAGS += -DDISPLAY_VSYNC=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(STLINKv21), 1)
|
STLINK_VER ?= v2
|
||||||
OPENOCD = openocd -f interface/stlink-v2-1.cfg -c "transport select hla_swd" -f target/stm32f4x.cfg
|
OPENOCD = openocd -f interface/stlink-$(STLINK_VER).cfg -c "transport select hla_swd" -f target/stm32f4x.cfg
|
||||||
else
|
|
||||||
OPENOCD = openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg
|
|
||||||
endif
|
|
||||||
|
|
||||||
## help commands:
|
## help commands:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user