2015-04-24 02:29:37 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008-2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=avrdude
|
2016-12-04 05:14:06 +08:00
|
|
|
PKG_VERSION:=6.3
|
2019-07-03 01:07:53 +08:00
|
|
|
PKG_RELEASE:=3
|
2015-04-24 02:29:37 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2016-12-04 05:14:06 +08:00
|
|
|
PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
|
2017-08-28 12:28:09 +08:00
|
|
|
PKG_HASH:=0f9f731b6394ca7795b88359689a7fa1fba818c6e1d962513eb28da670e0a196
|
2015-04-24 02:29:37 +08:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
2019-07-03 01:07:53 +08:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
2015-04-24 02:29:37 +08:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2015-12-07 08:56:44 +08:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2015-04-24 02:29:37 +08:00
|
|
|
|
|
|
|
define Package/avrdude
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2016-11-03 04:23:26 +08:00
|
|
|
SUBMENU:=Microcontroller programming
|
2015-04-24 02:29:37 +08:00
|
|
|
TITLE:=AVR Downloader/UploaDEr
|
2019-07-03 01:07:53 +08:00
|
|
|
URL:=https://www.nongnu.org/avrdude/
|
2019-01-24 20:12:36 +08:00
|
|
|
DEPENDS:=+libncurses +libreadline +libusb-compat +libftdi1 +libelf
|
2015-04-24 02:29:37 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/avrdude/description
|
|
|
|
AVRDUDE is a full featured program for programming Atmel's AVR CPU's.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-doc \
|
|
|
|
--disable-parport \
|
2015-08-26 06:25:35 +08:00
|
|
|
--enable-linuxgpio \
|
2015-04-24 02:29:37 +08:00
|
|
|
|
2015-06-17 01:25:02 +08:00
|
|
|
TARGET_CFLAGS+= \
|
|
|
|
-D_GNU_SOURCE \
|
|
|
|
|
2015-04-24 02:29:37 +08:00
|
|
|
define Package/avrdude/conffiles
|
|
|
|
/etc/avrdude.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/avrdude/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/avrdude.conf $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/avrdude $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,avrdude))
|