mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-18 11:03:50 +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:
parent
084dedcca7
commit
d674b3a80c
@ -13,7 +13,9 @@ RESET_FLAGS ?= reset
|
|||||||
|
|
||||||
ifneq (,$(OPENOCD_DEBUG_ADAPTER))
|
ifneq (,$(OPENOCD_DEBUG_ADAPTER))
|
||||||
include $(RIOTMAKE)/tools/openocd-adapters/$(OPENOCD_DEBUG_ADAPTER).inc.mk
|
include $(RIOTMAKE)/tools/openocd-adapters/$(OPENOCD_DEBUG_ADAPTER).inc.mk
|
||||||
|
ifneq (default,$(OPENOCD_TRANSPORT))
|
||||||
OPENOCD_ADAPTER_INIT += -c 'transport select $(OPENOCD_TRANSPORT)'
|
OPENOCD_ADAPTER_INIT += -c 'transport select $(OPENOCD_TRANSPORT)'
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OPENOCD_CONFIG ?= $(BOARDDIR)/dist/openocd.cfg
|
OPENOCD_CONFIG ?= $(BOARDDIR)/dist/openocd.cfg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user