1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

makefiles/openocd: export OPENOCD_CONFIG to required targets

This commit is contained in:
Alexandre Abadie 2020-02-22 11:31:39 +01:00
parent d7cbfe4f45
commit 03f4d383db
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -12,3 +12,9 @@ RESET_FLAGS ?= reset
ifneq (,$(DEBUG_ADAPTER))
include $(RIOTMAKE)/tools/openocd-adapters/$(DEBUG_ADAPTER).inc.mk
endif
OPENOCD_CONFIG ?= $(BOARDSDIR)/$(BOARD)/dist/openocd.cfg
# Export OPENOCD_CONFIG to required targets
OPENOCD_TARGETS = debug% flash% reset
$(call target-export-variables,$(OPENOCD_TARGETS),OPENOCD_CONFIG)