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:
parent
8489a0af53
commit
6560a1f567
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user