dist/tools/cc2538-bsl: add Makefile to build dependencies

This commit is contained in:
Francisco Molina 2020-11-06 16:52:28 +01:00
parent a07d3e0fc9
commit 8f1e2cbe00
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8
2 changed files with 8 additions and 4 deletions

View File

@ -2,9 +2,13 @@ PKG_NAME=cc2538-bsl
PKG_URL=https://github.com/JelmerT/cc2538-bsl.git PKG_URL=https://github.com/JelmerT/cc2538-bsl.git
PKG_VERSION=733e6f5b496402e40ad6d12df3d0372e205b8883 PKG_VERSION=733e6f5b496402e40ad6d12df3d0372e205b8883
PKG_LICENSE=BSD-3-Clause PKG_LICENSE=BSD-3-Clause
PKG_BUILDDIR=$(CURDIR)/bin
include $(RIOTBASE)/pkg/pkg.mk include $(RIOTBASE)/pkg/pkg.mk
all: all: $(CURDIR)/cc2538-bsl.py
$(CURDIR)/cc2538-bsl.py: $(PKG_SOURCE_DIR)/cc2538-bsl.py
cp $(PKG_SOURCE_DIR)/cc2538-bsl.py . cp $(PKG_SOURCE_DIR)/cc2538-bsl.py .
clean::
rm -f $(CURDIR)/cc2538-bsl.py

View File

@ -17,9 +17,9 @@ $(RIOTTOOLS)/pic32prog/pic32prog: $(RIOTTOOLS)/pic32prog/Makefile
$(MAKE) -C $(@D) $(MAKE) -C $(@D)
@echo "[INFO] $(@F) binary successfully built!" @echo "[INFO] $(@F) binary successfully built!"
$(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py: $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py: $(RIOTTOOLS)/cc2538-bsl/Makefile
@echo "[INFO] cc2538-bsl.py not found - fetching it from GitHub now" @echo "[INFO] cc2538-bsl.py not found - fetching it from GitHub now"
CC= CFLAGS= $(MAKE) -C $(RIOTTOOLS)/cc2538-bsl @CC= CFLAGS= $(MAKE) -C $(RIOTTOOLS)/cc2538-bsl
@echo "[INFO] cc2538-bsl.py successfully fetched!" @echo "[INFO] cc2538-bsl.py successfully fetched!"
$(RIOTTOOLS)/edbg/edbg: $(RIOTTOOLS)/edbg/Makefile $(RIOTTOOLS)/edbg/edbg: $(RIOTTOOLS)/edbg/Makefile