config BR2_PACKAGE_RNG_TOOLS
	bool "rng-tools"
	# 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
	select BR2_PACKAGE_LIBSYSFS
	select BR2_PACKAGE_OPENSSL
	help
	  Daemon to use hardware random number generators.

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

if BR2_PACKAGE_RNG_TOOLS

config BR2_PACKAGE_RNG_TOOLS_NISTBEACON
	bool "NIST Entropy Beacon support"
	select BR2_PACKAGE_JANSSON
	select BR2_PACKAGE_LIBCURL
	select BR2_PACKAGE_LIBXML2
	help
	  Enable NIST Entropy Beacon support.

	  Entropy gathered from the NIST network entropy beacon. Note
	  that this entropy source is disabled by default as it should
	  never be used for cryptographic purposes, or any use case in
	  which random data should be known only by a single entity.

endif

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