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_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_JITTERENTROPY_LIBRARY
	bool "Jitterentropy Library support"
	default y
	select BR2_PACKAGE_JITTERENTROPY_LIBRARY
	help
	  Enable Jitterentropy Library support.

	  The Jitter RNG provides a noise source using the CPU
	  execution timing jitter. It does not depend on any
	  system resource other than a high-resolution time stamp.

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
