You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.4 KiB

  1. # SPDX-License-Identifier: GPL-2.0-only
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=bossa
  4. PKG_VERSION:=1.9.1
  5. PKG_RELEASE:=$(AUTORELEASE)
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  7. PKG_SOURCE_URL:=https://codeload.github.com/shumatech/BOSSA/tar.gz/$(PKG_VERSION)?
  8. PKG_HASH:=ca650455dfa36cbd029010167347525bea424717a71a691381c0811591c93e72
  9. PKG_BUILD_DIR:=$(BUILD_DIR)/BOSSA-$(PKG_VERSION)
  10. PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
  11. PKG_LICENSE:=BSD-3-Clause
  12. PKG_LICENSE_FILES:=LICENSE
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/bossa
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. DEPENDS:=+libstdcpp
  18. TITLE:=Utility to flash ARM microcontrollers
  19. URL:=http://www.shumatech.com/web/products/bossa
  20. endef
  21. define Package/bossa/description
  22. BOSSA is a flash programming utility for Atmel's SAM family of flash-based
  23. ARM microcontrollers. The motivation behind BOSSA is to create a simple,
  24. easy-to-use, open source utility to replace Atmel's SAM-BA software.
  25. endef
  26. define Build/Compile
  27. COMMON_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
  28. COMMON_LDFLAGS="$(TARGET_LINKFLAGS) $(TARGET_LDFLAGS)" \
  29. $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" bin/bossac
  30. endef
  31. define Package/bossa/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/bossac $(1)/usr/bin/
  34. endef
  35. $(eval $(call BuildPackage,bossa))