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.

58 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.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/avrdude
  13. PKG_MD5SUM:=9db8c25b935d34234b9b1ba16ad55fd5
  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. define Package/avrdude
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=AVR Downloader/UploaDEr
  24. URL:=http://www.nongnu.org/avrdude/
  25. DEPENDS:=+libncurses +libreadline +libusb-compat +libftdi1 +libelf1
  26. endef
  27. define Package/avrdude/description
  28. AVRDUDE is a full featured program for programming Atmel's AVR CPU's.
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --disable-doc \
  32. --disable-parport \
  33. --enable-linuxgpio \
  34. TARGET_CFLAGS+= \
  35. -D_GNU_SOURCE \
  36. define Package/avrdude/conffiles
  37. /etc/avrdude.conf
  38. endef
  39. define Package/avrdude/install
  40. $(INSTALL_DIR) $(1)/etc
  41. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/avrdude.conf $(1)/etc/
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/avrdude $(1)/usr/bin/
  44. endef
  45. $(eval $(call BuildPackage,avrdude))