zephyr/drivers/entropy/Kconfig.native_posix
Kumar Gala 2245bf89b7 drivers: entropy: Update drivers to use devicetree Kconfig symbol
Update entropy drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-25 09:39:10 +02:00

15 lines
556 B
Plaintext

# SPDX-License-Identifier: Apache-2.0
config FAKE_ENTROPY_NATIVE_POSIX
bool "Native posix entropy driver"
default y
depends on DT_HAS_ZEPHYR_NATIVE_POSIX_RNG_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the test random number generator for the
native_posix board (ARCH_POSIX). This is based on the host random() API.
Note that this entropy generator is only meant for test purposes and does
not generate real entropy.
It actually generates always the same sequence of random numbers if
initialized with the same seed.