Skip to content
Snippets Groups Projects
Unverified Commit 8a783554 authored by cladmi's avatar cladmi
Browse files

edbg.inc.mk: handle IMAGE_OFFSET being defined with a space

Handle that `IMAGE_OFFSET` can be set to something that contain spaces.

With 'IMAGE_OFFSET=$$((0x1000 + 0x1000))' we had in the command line when doing
'flash'

    --offset $((0x1000 --offset + --offset 0x1000))

With the change we correctly have

    --offset $((0x1000 + 0x1000))
parent 76558bd6
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ ifneq (,$(DEBUG_ADAPTER_ID))
endif
# Set offset according to IMAGE_OFFSET if it's defined
EDBG_ARGS += $(addprefix --offset ,$(IMAGE_OFFSET))
EDBG_ARGS += $(if $(IMAGE_OFFSET),--offset $(IMAGE_OFFSET))
FFLAGS ?= $(EDBG_ARGS) -t $(EDBG_DEVICE_TYPE) -b -v -p -f $(HEXFILE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment