xref: /OK3568_Linux_fs/buildroot/package/avrdude/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils
7	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
8	select BR2_PACKAGE_ELFUTILS
9	select BR2_PACKAGE_LIBUSB
10	select BR2_PACKAGE_LIBUSB_COMPAT
11	select BR2_PACKAGE_NCURSES
12	help
13	  avrdude is a programmer for Atmel AVR microcontrollers
14	  this package provides a version with new linuxspi driver
15
16	  https://github.com/kcuzner/avrdude
17
18if BR2_PACKAGE_AVRDUDE
19
20config BR2_PACKAGE_AVRDUDE_SPI
21	bool "SPI support"
22	default y # Backward compatibility
23	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
24
25comment "SPI support needs a toolchain w/ linux headers >= 4.6"
26	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
27
28endif
29
30comment "avrdude needs a uClibc or glibc toolchain w/ threads, wchar, dynamic library, gcc >= 4.9"
31	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR \
32		|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \
33		|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
34