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.

60 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2008-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:=avrdude
  9. PKG_VERSION:=6.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
  13. PKG_MD5SUM:=58bb42049122cf80fe4f4d0ce36d92ee
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/avrdude
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. SUBMENU:=Microcontroller programming
  25. TITLE:=AVR Downloader/UploaDEr
  26. URL:=http://www.nongnu.org/avrdude/
  27. DEPENDS:=+libncurses +libreadline +libusb-compat +libftdi1 +libelf1
  28. endef
  29. define Package/avrdude/description
  30. AVRDUDE is a full featured program for programming Atmel's AVR CPU's.
  31. endef
  32. CONFIGURE_ARGS+= \
  33. --disable-doc \
  34. --disable-parport \
  35. --enable-linuxgpio \
  36. TARGET_CFLAGS+= \
  37. -D_GNU_SOURCE \
  38. define Package/avrdude/conffiles
  39. /etc/avrdude.conf
  40. endef
  41. define Package/avrdude/install
  42. $(INSTALL_DIR) $(1)/etc
  43. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/avrdude.conf $(1)/etc/
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/avrdude $(1)/usr/bin/
  46. endef
  47. $(eval $(call BuildPackage,avrdude))