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.

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