config BR2_PACKAGE_FLASHROM
	bool "flashrom"
	select BR2_PACKAGE_PCIUTILS
	select BR2_PACKAGE_LIBUSB
	select BR2_PACKAGE_LIBUSB_COMPAT
	select BR2_PACKAGE_LIBFTDI
	# dmidecode is only a runtime dependency
	select BR2_PACKAGE_DMIDECODE
	depends on BR2_i386 || BR2_x86_64
	depends on BR2_TOOLCHAIN_HAS_THREADS 	# libusb
	depends on BR2_ARCH_HAS_ATOMICS 	# libftdi
	help
	  flashrom is a utility for identifying, reading, writing,
	  verifying and erasing flash chips. It is designed to flash
	  BIOS/EFI/coreboot/firmware/optionROM images on mainboards,
	  network/graphics/storage controller cards, and various other
	  programmer devices.

	  http://flashrom.org/

comment "flashrom needs a toolchain w/ threads"
	depends on BR2_i386 || BR2_x86_64
	depends on BR2_ARCH_HAS_ATOMICS
	depends on !BR2_TOOLCHAIN_HAS_THREADS
