1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/tools/openocd.inc.mk: Improve transport handling

Allow setting `OPENOCD_TRANSPORT` to `default` for when a transport to
not explicitly set the transport. This is useful when the target or
interface script already specify the transport.
This commit is contained in:
Marian Buschsieweke 2024-01-17 09:14:38 +01:00
parent 084dedcca7
commit d674b3a80c
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6

View File

@ -13,7 +13,9 @@ RESET_FLAGS ?= reset
ifneq (,$(OPENOCD_DEBUG_ADAPTER))
include $(RIOTMAKE)/tools/openocd-adapters/$(OPENOCD_DEBUG_ADAPTER).inc.mk
OPENOCD_ADAPTER_INIT += -c 'transport select $(OPENOCD_TRANSPORT)'
ifneq (default,$(OPENOCD_TRANSPORT))
OPENOCD_ADAPTER_INIT += -c 'transport select $(OPENOCD_TRANSPORT)'
endif
endif
OPENOCD_CONFIG ?= $(BOARDDIR)/dist/openocd.cfg