mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
makefiles/jlink: export JLINK_IF to required targets
This commit is contained in:
parent
9c2e5c9b7c
commit
04d32e9609
@ -12,9 +12,16 @@ RESET_FLAGS ?= reset
|
||||
|
||||
JLINK_SERIAL ?= $(DEBUG_ADAPTER_ID)
|
||||
|
||||
JLINK_IF ?=
|
||||
|
||||
# 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_IF))
|
||||
# Export JLINK_IF to required targets if not empty
|
||||
$(call target-export-variables,$(JLINK_TARGETS),JLINK_IF)
|
||||
endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user