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.

49 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. $(MAKE) -C $(PKG_BUILD_DIR) bin/bossac \
  28. CC="$(TARGET_CC_NOCACHE)" \
  29. CXX="$(TARGET_CXX_NOCACHE)" \
  30. CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
  31. CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)" \
  32. CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
  33. LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)"
  34. endef
  35. define Package/bossa/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/bossac $(1)/usr/bin/
  38. endef
  39. $(eval $(call BuildPackage,bossa))