mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
dist/tools/cc2538-bsl: use upstream version
Automatically fetch the upstream version of cc2538-bsl.py instead of maintaining our own fork of the tool. fixes #13566
This commit is contained in:
parent
ed316309c8
commit
ed4d871835
@ -20,6 +20,7 @@ PROGRAMMER ?= cc2538-bsl
|
||||
|
||||
ifeq ($(PROGRAMMER),cc2538-bsl)
|
||||
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
||||
FLASHDEPS += $(FLASHER)
|
||||
FFLAGS = -p "$(PROG_DEV)" -e -w -v $(FLASHFILE)
|
||||
else ifeq ($(PROGRAMMER),jlink)
|
||||
FLASHER = $(RIOTBOARD)/cc2538dk/dist/flash.sh
|
||||
|
@ -13,6 +13,7 @@ endif
|
||||
ifeq ($(PROGRAMMER),cc2538-bsl)
|
||||
RESET ?= $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py -p "$(PROG_DEV)"
|
||||
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
||||
FLASHDEPS += $(FLASHER)
|
||||
FFLAGS = -p "$(PROG_DEV)" -e -w -v -b 115200 $(FLASHFILE)
|
||||
else ifeq ($(PROGRAMMER),jlink)
|
||||
FLASHER = $(RIOTBOARD)/common/remote/dist/flash.sh
|
||||
|
@ -17,6 +17,7 @@ endif
|
||||
ifeq ($(PROGRAMMER),cc2538-bsl)
|
||||
FLASHFILE ?= $(HEXFILE)
|
||||
FLASHER = $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
|
||||
FLASHDEPS += $(FLASHER)
|
||||
FFLAGS = -p "$(PROG_DEV)" --bootloader-invert-lines -e -w -v -b 460800 $(FLASHFILE)
|
||||
RESET ?= $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
||||
RESET_FLAGS ?= -p "$(PROG_DEV)" --bootloader-invert-lines
|
||||
|
@ -17,5 +17,6 @@ ifeq ($(PROGRAMMER),jlink)
|
||||
else
|
||||
FLASHFILE ?= $(BINFILE)
|
||||
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
||||
FLASHDEPS += $(FLASHER)
|
||||
FFLAGS = -p "$(PROG_DEV)" -e -w -v -b 460800 $(FLASHFILE)
|
||||
endif
|
||||
|
1
dist/tools/cc2538-bsl/.gitignore
vendored
Normal file
1
dist/tools/cc2538-bsl/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
cc2538-bsl.py
|
10
dist/tools/cc2538-bsl/Makefile
vendored
Normal file
10
dist/tools/cc2538-bsl/Makefile
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
PKG_NAME=cc2538-bsl
|
||||
PKG_URL=https://github.com/JelmerT/cc2538-bsl.git
|
||||
PKG_VERSION=733e6f5b496402e40ad6d12df3d0372e205b8883
|
||||
PKG_LICENSE=BSD-3-Clause
|
||||
PKG_BUILDDIR=$(CURDIR)/bin
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
cp $(PKG_BUILDDIR)/cc2538-bsl.py .
|
1236
dist/tools/cc2538-bsl/cc2538-bsl.py
vendored
1236
dist/tools/cc2538-bsl/cc2538-bsl.py
vendored
File diff suppressed because it is too large
Load Diff
@ -17,6 +17,11 @@ $(RIOTTOOLS)/pic32prog/pic32prog: $(RIOTTOOLS)/pic32prog/Makefile
|
||||
make -C $(@D)
|
||||
@echo "[INFO] $(@F) binary successfully built!"
|
||||
|
||||
$(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py:
|
||||
@echo "[INFO] cc2538-bsl.py not found - fetching it from GitHub now"
|
||||
CC= CFLAGS= make -C $(RIOTTOOLS)/cc2538-bsl
|
||||
@echo "[INFO] cc2538-bsl.py successfully fetched!"
|
||||
|
||||
$(RIOTTOOLS)/edbg/edbg: $(RIOTTOOLS)/edbg/Makefile
|
||||
@echo "[INFO] edbg binary not found - building it from source now"
|
||||
CC= CFLAGS= make -C $(RIOTTOOLS)/edbg
|
||||
|
Loading…
Reference in New Issue
Block a user