config BR2_PACKAGE_STRESS_NG
	bool "stress-ng"
	depends on BR2_USE_MMU # fork()
	# perf.c needs PERF_COUNT_HW_REF_CPU_CYCLES
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
	depends on BR2_TOOLCHAIN_HAS_THREADS
	# fenv.h lacks FE_INVALID, FE_OVERFLOW & FE_UNDERFLOW on ARC
	depends on !BR2_arc
	help
	  stress-ng will stress test a computer system in various
	  selectable ways. It was designed to exercise various physical
	  subsystems of a computer as well as the various operating
	  system kernel interfaces.

	  https://github.com/ColinIanKing/stress-ng

comment "stress-ng needs a toolchain w/ threads, headers >= 3.3"
	depends on !BR2_arc
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on BR2_USE_MMU
	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3 || !BR2_TOOLCHAIN_HAS_THREADS
