Commit 2d959d96 authored by Valerio Setti's avatar Valerio Setti Committed by Benjamin Cabé
Browse files

drivers: entropy: enable ENTROPY_GENERATOR if "zephyr,entropy" is set in DT



Automatically enable ENTROPY_GENERATOR if the device-tree has
any "zephyr,entropy" chosen property specified. This helps
in having CONFIG_ENTROPY_HAS_DRIVER set if the platform support
an entropy driver and this then enables CONFIG_CSPRNG_ENABLED.

Signed-off-by: default avatarValerio Setti <vsetti@baylibre.com>
parent 69d415c9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3,8 +3,11 @@
# Copyright (c) 2014-2015 Wind River Systems, Inc.
# SPDX-License-Identifier: Apache-2.0

DT_CHOSEN_Z_ENTROPY := zephyr,entropy

menuconfig ENTROPY_GENERATOR
	bool "Entropy drivers"
	default y if $(dt_chosen_enabled,$(DT_CHOSEN_Z_ENTROPY))
	help
	  Include entropy drivers in system config.