1config BR2_PACKAGE_AVRDUDE
2	bool "avrdude"
3	depends on BR2_TOOLCHAIN_HAS_THREADS
4	depends on BR2_USE_WCHAR # elfutils
5	depends on !BR2_STATIC_LIBS # elfutils
6	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
7	select BR2_PACKAGE_ELFUTILS
8	select BR2_PACKAGE_LIBUSB
9	select BR2_PACKAGE_LIBUSB_COMPAT
10	select BR2_PACKAGE_NCURSES
11	help
12	  avrdude is a programmer for Atmel AVR microcontrollers
13	  this package provides a version with new linuxspi driver
14
15	  https://github.com/kcuzner/avrdude
16
17if BR2_PACKAGE_AVRDUDE
18
19config BR2_PACKAGE_AVRDUDE_SPI
20	bool "SPI support"
21	default y # Backward compatibility
22	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
23
24comment "SPI support needs a toolchain w/ linux headers >= 4.8"
25	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
26
27endif
28
29comment "avrdude needs a toolchain w/ threads, wchar, dynamic library, gcc >= 4.9"
30	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR \
31		|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
32