config BR2_PACKAGE_RNG_TOOLS
	bool "rng-tools"
	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS || !(BR2_i386 || BR2_x86_64 || BR2_powerpc64le) # libgcrypt
	# pthread_setaffinity_np
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
	select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
	select BR2_PACKAGE_JITTERENTROPY_LIBRARY
	# For rdrand & darn ligcrypt is required and it's not obvious to users
	select BR2_PACKAGE_LIBGCRYPT if BR2_i386 || BR2_x86_64 || BR2_powerpc64le
	select BR2_PACKAGE_LIBSYSFS
	help
	  Daemon to use hardware random number generators.

	  http://sourceforge.net/projects/gkernel/

comment "rng-tools needs a toolchain w/ NPTL"
	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
