1################################################################################ 2# 3# avrdude 4# 5################################################################################ 6 7AVRDUDE_VERSION = r1450 8AVRDUDE_SITE_METHOD = svn 9AVRDUDE_SITE = http://svn.savannah.nongnu.org/svn/avrdude/trunk 10AVRDUDE_LICENSE = GPL-2.0+ 11AVRDUDE_LICENSE_FILES = avrdude/COPYING 12AVRDUDE_SUBDIR = avrdude 13# Sources coming from svn, without generated configure and Makefile.in 14# files. 15AVRDUDE_AUTORECONF = YES 16AVRDUDE_CONF_OPTS = --enable-linuxgpio 17AVRDUDE_DEPENDENCIES = elfutils libusb libusb-compat ncurses \ 18 host-flex host-bison 19 20ifeq ($(BR2_PACKAGE_AVRDUDE_SPI),y) 21AVRDUDE_CONF_OPTS += --enable-linuxspi 22else 23AVRDUDE_CONF_OPTS += --disable-linuxspi 24endif 25 26ifeq ($(BR2_PACKAGE_LIBFTDI1),y) 27AVRDUDE_DEPENDENCIES += libftdi1 28else ifeq ($(BR2_PACKAGE_LIBFTDI),y) 29AVRDUDE_DEPENDENCIES += libftdi 30endif 31 32# if /etc/avrdude.conf exists, the installation process creates a 33# backup file, which we do not want in the context of Buildroot. 34define AVRDUDE_REMOVE_BACKUP_FILE 35 $(RM) -f $(TARGET_DIR)/etc/avrdude.conf.bak 36endef 37 38AVRDUDE_POST_INSTALL_TARGET_HOOKS += AVRDUDE_REMOVE_BACKUP_FILE 39 40$(eval $(autotools-package)) 41