makefiles/pyocd: only export PYOCD_ADAPTER_INIT when required

This commit is contained in:
Alexandre Abadie 2020-03-08 15:10:11 +01:00
parent c27870face
commit fb27409b73
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -19,5 +19,6 @@ endif
# Add serial matching command, only if DEBUG_ADAPTER_ID was specified
ifneq (,$(DEBUG_ADAPTER_ID))
export PYOCD_ADAPTER_INIT += -u $(DEBUG_ADAPTER_ID)
PYOCD_ADAPTER_INIT += -u $(DEBUG_ADAPTER_ID)
$(call target-export-variables,$(PYOCD_TARGETS),PYOCD_ADAPTER_INIT)
endif