mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 07:51:19 +01:00
Merge pull request #20779 from crasbe/pr/jlink_flashing
makesfiles/jlink: fix exports for flashing
This commit is contained in:
commit
4e4c4a194f
@ -15,14 +15,22 @@ JLINK_SERIAL ?= $(DEBUG_ADAPTER_ID)
|
||||
JLINK_IF ?=
|
||||
JLINK_RESET_FILE ?=
|
||||
JLINK_PRE_FLASH ?=
|
||||
JLINK_POST_FLASH ?=
|
||||
|
||||
JLINK_FLASH_TARGETS = flash flash%
|
||||
JLINK_TARGETS = debug% $(JLINK_FLASH_TARGETS) reset term-rtt
|
||||
|
||||
# Export JLINK_SERIAL to required targets
|
||||
JLINK_TARGETS = debug% flash% reset term-rtt
|
||||
$(call target-export-variables,$(JLINK_TARGETS),JLINK_SERIAL)
|
||||
|
||||
# Export JLINK_DEVICE to required targets
|
||||
$(call target-export-variables,$(JLINK_TARGETS),JLINK_DEVICE)
|
||||
|
||||
ifneq (,$(JLINK))
|
||||
# Export JLINK to required targets if not empty
|
||||
$(call target-export-variables,$(JLINK_TARGETS),JLINK)
|
||||
endif
|
||||
|
||||
ifneq (,$(JLINK_IF))
|
||||
# Export JLINK_IF to required targets if not empty
|
||||
$(call target-export-variables,$(JLINK_TARGETS),JLINK_IF)
|
||||
@ -35,5 +43,10 @@ endif
|
||||
|
||||
# Export JLINK_PRE_FLASH to flash targets only if not empty
|
||||
ifneq (,$(JLINK_PRE_FLASH))
|
||||
$(call target-export-variables,flash%,JLINK_PRE_FLASH)
|
||||
$(call target-export-variables,JLINK_FLASH_TARGETS,JLINK_PRE_FLASH)
|
||||
endif
|
||||
|
||||
# Export JLINK_POST_FLASH to flash targets only if not empty
|
||||
ifneq (,$(JLINK_POST_FLASH))
|
||||
$(call target-export-variables,JLINK_FLASH_TARGETS,JLINK_POST_FLASH)
|
||||
endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user