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

makefiles/jlink: export JLINK_PRE_FLASH to flash targets

This commit is contained in:
Alexandre Abadie 2020-03-03 16:42:37 +01:00
parent 8489a0af53
commit 6560a1f567
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -14,6 +14,7 @@ JLINK_SERIAL ?= $(DEBUG_ADAPTER_ID)
JLINK_IF ?=
JLINK_RESET_FILE ?=
JLINK_PRE_FLASH ?=
# Export JLINK_SERIAL to required targets
JLINK_TARGETS = debug% flash% reset term-rtt
@ -31,3 +32,8 @@ ifneq (,$(JLINK_RESET_FILE))
# Export JLINK_RESET_FILE to required targets if not empty
$(call target-export-variables,$(JLINK_TARGETS),JLINK_RESET_FILE)
endif
# Export JLINK_PRE_FLASH to flash targets only if not empty
ifneq (,$(JLINK_PRE_FLASH))
$(call target-export-variables,flash%,JLINK_PRE_FLASH)
endif