config BR2_PACKAGE_THERMALD
	bool "thermald"
	depends on BR2_i386 || BR2_x86_64 # needs <cpuid.h>
	depends on BR2_USE_MMU # uses fork()
	depends on BR2_USE_WCHAR # upower -> libgudev
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # upower -> libusb
	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus-glib -> glib2, dbus, upower
	depends on BR2_USE_WCHAR # dbus-glib -> glib2
	depends on BR2_PACKAGE_HAS_UDEV # upower
	select BR2_PACKAGE_DBUS
	select BR2_PACKAGE_DBUS_GLIB
	select BR2_PACKAGE_LIBEVDEV
	select BR2_PACKAGE_LIBXML2
	select BR2_PACKAGE_UPOWER
	select BR2_PACKAGE_XZ
	help
	  Thermal Daemon is a Linux daemon for monitoring and
	  controlling platform temperatures. Once the system temperature
	  reaches a certain threshold, the Linux daemon activates
	  various cooling methods to try to cool the system.

	  https://github.com/intel/thermal_daemon

comment "thermald needs a toolchain w/ C++, wchar, threads, gcc >= 4.9"
	depends on BR2_i386 || BR2_x86_64
	depends on BR2_USE_MMU
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

comment "thermald needs udev /dev management"
	depends on BR2_i386 || BR2_x86_64
	depends on BR2_USE_MMU
	depends on !BR2_PACKAGE_HAS_UDEV
