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.

46 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=dfu-programmer
  9. PKG_VERSION:=0.7.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/dfu-programmer/dfu-programmer/$(PKG_VERSION)/
  13. PKG_MD5SUM:=98641b0a7cf1cc8c8be3584d5552f6d8
  14. PKG_MAINTAINER:=Stefan Hellermann <stefan@the2masters.de>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/dfu-programmer
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. SUBMENU:=Microcontroller programming
  24. TITLE:=USB programmer for Atmel microcontrollers
  25. URL:=http://dfu-programmer.github.io/
  26. DEPENDS:=+libusb-1.0
  27. endef
  28. define Package/dfu-programmer/description
  29. dfu-programmer is a Device Firmware Update (DFU) based USB programmer
  30. for Atmel chips with a USB bootloader.
  31. endef
  32. define Package/dfu-programmer/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  35. endef
  36. $(eval $(call BuildPackage,dfu-programmer))