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

tools: add means to download and build BOSSA

This commit is contained in:
Hauke Petersen 2017-05-17 09:45:06 +02:00
parent b64beb0888
commit fb82e246d9
3 changed files with 17 additions and 1 deletions

View File

@ -360,7 +360,7 @@ distclean:
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTPKG)/$$i distclean ; done
-@rm -rf $(BINDIRBASE)
flash: all
flash: all $(FLASHDEPS)
@command -v $(FLASHER) >/dev/null 2>&1 || \
{ $(COLOR_ECHO) \
'${COLOR_RED}Flash program $(FLASHER) not found. Aborting.${COLOR_RESET}'; \

2
dist/tools/bossa/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
bossac
bin

14
dist/tools/bossa/Makefile vendored Normal file
View File

@ -0,0 +1,14 @@
PKG_NAME = bossa
PKG_URL = https://github.com/shumatech/BOSSA
PKG_VERSION = 26154375695f345491bba158d57177aa231d6765
PKG_LICENSE = BSD-3-Clause
PKG_BUILDDIR = $(CURDIR)/bin
.PHONY: all
all: git-download
@echo "[INFO] compiling bossac from source now"
@env -u CXX COMMON_CXXFLAGS="-std=c++11" $(MAKE) BINDIR=$(PKG_BUILDDIR) -C $(PKG_BUILDDIR) strip-bossac
@mv $(PKG_BUILDDIR)/bossac $(CURDIR)/bossac
include $(RIOTBASE)/pkg/pkg.mk