config BR2_PACKAGE_HAWKTRACER
	bool "hawktracer"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
	help
	  HawkTracer is a highly portable, low-overhead, configurable
	  profiling tool built in Amazon Video for getting performance
	  metrics from low-end devices.

	  https://hawktracer.github.io/

if BR2_PACKAGE_HAWKTRACER

config BR2_PACKAGE_HAWKTRACER_TCP_LISTENER
	bool "TCP listener"
	default y
	depends on BR2_TOOLCHAIN_HAS_THREADS

comment "TCP listener needs a toolchain w/ threads"
	depends on !BR2_TOOLCHAIN_HAS_THREADS

endif

comment "hawktracer needs a toolchain w/ C++, gcc >= 4.8"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
