config BR2_PACKAGE_OPENFPGALOADER
	bool "openfpgaloader"
	depends on BR2_TOOLCHAIN_HAS_THREADS # libftdi1
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libftdi1 -> libusb
	depends on BR2_INSTALL_LIBSTDCPP
	select BR2_PACKAGE_LIBFTDI1
	help
	  Universal utility for programming FPGA

	  https://github.com/trabucayre/openFPGALoader/

comment "openfpgaloader needs a toolchain w/ threads, C++, gcc >= 4.9"
	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
