03fa36df7e
In the meanwhile "linuxspi" programmer was merged upstream, therefore
it's possible to switch to latest upstream tree instead of the old fork
without losing any functionality.
The fork we were using did auto-detection of kernel headers to detect
whether spidev.h was present or not, and thus whether to enable or
disable its linuxspi 'driver'. As spidev.h has been present since
linux-2.6.22, we can quite easily conclude that spidev support was
always enabled in the fork.
But upstream went a slightly different route, and added a configure
option (and they do no validity check).
So, to keep backward behaviour, we unconditionally enable it now that
we switched back to use upstream.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
[yann.morin.1998@free.fr:
- clarify why we forcibly use --enable-linuxspi
- fix the hash to adapt to the new svn tarball format (c043ecb20c
)
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# avrdude
|
|
#
|
|
################################################################################
|
|
|
|
AVRDUDE_VERSION = r1450
|
|
AVRDUDE_SITE_METHOD = svn
|
|
AVRDUDE_SITE = http://svn.savannah.nongnu.org/svn/avrdude/trunk
|
|
AVRDUDE_LICENSE = GPL-2.0+
|
|
AVRDUDE_LICENSE_FILES = avrdude/COPYING
|
|
AVRDUDE_SUBDIR = avrdude
|
|
# Sources coming from svn, without generated configure and Makefile.in
|
|
# files.
|
|
AVRDUDE_AUTORECONF = YES
|
|
AVRDUDE_CONF_OPTS = --enable-linuxgpio --enable-linuxspi
|
|
AVRDUDE_DEPENDENCIES = elfutils libusb libusb-compat ncurses \
|
|
host-flex host-bison
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1),y)
|
|
AVRDUDE_DEPENDENCIES += libftdi1
|
|
else ifeq ($(BR2_PACKAGE_LIBFTDI),y)
|
|
AVRDUDE_DEPENDENCIES += libftdi
|
|
endif
|
|
|
|
# if /etc/avrdude.conf exists, the installation process creates a
|
|
# backup file, which we do not want in the context of Buildroot.
|
|
define AVRDUDE_REMOVE_BACKUP_FILE
|
|
$(RM) -f $(TARGET_DIR)/etc/avrdude.conf.bak
|
|
endef
|
|
|
|
AVRDUDE_POST_INSTALL_TARGET_HOOKS += AVRDUDE_REMOVE_BACKUP_FILE
|
|
|
|
$(eval $(autotools-package))
|