From 6a9175944cd4a4f00f99122281824a1c9aa9d0d1 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser <kaspar@schleiser.de> Date: Fri, 19 May 2017 00:28:19 +0200 Subject: [PATCH] dist: tools: add edbg --- dist/tools/edbg/.gitignore | 1 + dist/tools/edbg/Makefile | 13 +++++++++++++ makefiles/tools/targets.inc.mk | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 dist/tools/edbg/.gitignore create mode 100644 dist/tools/edbg/Makefile diff --git a/dist/tools/edbg/.gitignore b/dist/tools/edbg/.gitignore new file mode 100644 index 0000000000..87a897f7ec --- /dev/null +++ b/dist/tools/edbg/.gitignore @@ -0,0 +1 @@ +edbg diff --git a/dist/tools/edbg/Makefile b/dist/tools/edbg/Makefile new file mode 100644 index 0000000000..82f7fbbf16 --- /dev/null +++ b/dist/tools/edbg/Makefile @@ -0,0 +1,13 @@ +PKG_NAME=edbg +PKG_URL=https://github.com/ataradov/edbg +PKG_VERSION=d499ffd8297233b65dd91fd58fb98b9f9a03fec1 +PKG_LICENSE=BSD-3-Clause +PKG_BUILDDIR=$(CURDIR)/bin + +.PHONY: all + +all: git-download + "$(MAKE)" -C $(PKG_BUILDDIR) + mv $(PKG_BUILDDIR)/edbg . + +include $(RIOTBASE)/pkg/pkg.mk diff --git a/makefiles/tools/targets.inc.mk b/makefiles/tools/targets.inc.mk index f1a0ed5032..4be923a92a 100644 --- a/makefiles/tools/targets.inc.mk +++ b/makefiles/tools/targets.inc.mk @@ -9,3 +9,8 @@ $(RIOTBASE)/dist/tools/bossa/bossac: @echo "[INFO] bossac binary not found - building it from source" @make -C $(RIOTBASE)/dist/tools/bossa @echo "[INFO] bossac binary successfully build!" + +$(RIOTBASE)/dist/tools/edbg/edbg: + @echo "[INFO] edbg binary not found - building it from source now" + CC= CFLAGS= make -C $(RIOTBASE)/dist/tools/edbg + @echo "[INFO] edbg binary successfully build!" -- GitLab