1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

make: namespace cc2538-bsl optional flags variable

This commit is contained in:
Alexandre Abadie 2021-02-18 17:54:53 +01:00
parent 7ac924f15c
commit 9b0a626f0a
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ PROGRAMMER ?= cc2538-bsl
ifeq ($(PROGRAMMER),cc2538-bsl)
FLASHFILE ?= $(HEXFILE)
FFLAGS_OPTS ?= --bootloader-invert-lines
CC2538_BSL_FLAGS_OPTS ?= --bootloader-invert-lines
endif
include $(RIOTBOARD)/common/cc2538/Makefile.include

View File

@ -1,15 +1,15 @@
FLASHFILE ?= $(BINFILE)
CC2538_BSL ?= $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
FFLAGS_OPTS ?=
PROG_BAUD ?= 500000 # default value in cc2538-bsl
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)" $(FFLAGS_OPTS) --write-erase -v -b $(PROG_BAUD) $(FLASHFILE)
CC2538_BSL_FLAGS += -p "$(PROG_DEV)" $(CC2538_BSL_FLAGS_OPTS) --write-erase -v -b $(PROG_BAUD) $(FLASHFILE)
FLASHER ?= $(CC2538_BSL)
FFLAGS ?= $(CC2538_BSL_FLAGS)
RESET ?= $(FLASHER) -p "$(PROG_DEV)" $(FFLAGS_OPTS) -b $(PROG_BAUD)
RESET ?= $(FLASHER) -p "$(PROG_DEV)" $(CC2538_BSL_FLAGS_OPTS) -b $(PROG_BAUD)
ifeq ($(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py,$(FLASHER))
FLASHDEPS += $(FLASHER)