Browse Source

tools: add means to download and build BOSSA

master
Hauke Petersen 6 years ago
parent
commit
fb82e246d9
  1. 2
      Makefile.include
  2. 2
      dist/tools/bossa/.gitignore
  3. 14
      dist/tools/bossa/Makefile

2
Makefile.include

@ -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

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

14
dist/tools/bossa/Makefile vendored

@ -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
Loading…
Cancel
Save