2017-05-19 00:28:19 +02:00
|
|
|
PKG_NAME=edbg
|
|
|
|
PKG_URL=https://github.com/ataradov/edbg
|
2021-05-23 18:26:16 +02:00
|
|
|
PKG_VERSION=73eb74785d57d7828f0d180b4875146c8e840eba
|
2017-05-19 00:28:19 +02:00
|
|
|
PKG_LICENSE=BSD-3-Clause
|
2020-06-13 21:03:07 +02:00
|
|
|
|
2020-07-10 11:26:42 +02:00
|
|
|
# manually set some RIOT env vars, so this Makefile can be called stand-alone
|
|
|
|
RIOTBASE ?= $(CURDIR)/../../..
|
|
|
|
RIOTTOOLS ?= $(CURDIR)/..
|
|
|
|
|
2020-06-13 21:03:07 +02:00
|
|
|
PKG_SOURCE_DIR = $(CURDIR)/bin
|
|
|
|
PKG_BUILD_OUT_OF_SOURCE = 0
|
2017-05-19 00:28:19 +02:00
|
|
|
|
2019-10-02 12:47:02 +02:00
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
2017-05-19 00:28:19 +02:00
|
|
|
|
2020-07-10 11:26:42 +02:00
|
|
|
all: $(CURDIR)/edbg
|
|
|
|
|
|
|
|
$(CURDIR)/edbg:
|
2017-10-10 19:03:44 +02:00
|
|
|
# Start edbg build in a clean environment, so variables set by RIOT's build process
|
2018-02-25 23:02:25 +01:00
|
|
|
# for cross compiling a specific target platform are reset and edbg can
|
2017-10-10 19:03:44 +02:00
|
|
|
# be built cleanly for the native platform.
|
2020-06-13 21:03:07 +02:00
|
|
|
env -i PATH="$(PATH)" TERM="$(TERM)" "$(MAKE)" -C "$(PKG_BUILD_DIR)"
|
|
|
|
mv $(PKG_BUILD_DIR)/edbg .
|
2020-07-10 11:26:42 +02:00
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f $(CURDIR)/edbg
|