tools/cc2538-bsl: add deprecation warning about FFLAGS_OPTS

This commit is contained in:
Alexandre Abadie 2021-02-23 15:28:47 +01:00
parent 3ed4734821
commit b1d0fe0b2b
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -3,6 +3,12 @@ FLASHFILE ?= $(CC2538_BSL_FLASHFILE)
CC2538_BSL ?= $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
PROG_BAUD ?= 500000 # default value in cc2538-bsl
# Warn about deprecated variables
ifneq (,$(FFLAGS_OPTS))
$(warning Warning! FFLAGS_OPTS is deprecated use CC2538_BSL_FLAGS_OPTS)
CC2538_BSL_FLAGS_OPTS ?= $(FFLAGS_OPTS)
endif
CC2538_BSL_FLAGS_OPTS ?=
CC2538_BSL_FLAGS = $(if $(IMAGE_OFFSET), -a $(shell printf "0x%08x" $$(($(IMAGE_OFFSET) + $(ROM_START_ADDR)))))
CC2538_BSL_FLAGS += -p "$(PROG_DEV)" $(CC2538_BSL_FLAGS_OPTS) --write-erase -v -b $(PROG_BAUD) $(FLASHFILE)