Skip to content
Commit 39068cc7 authored by Valerio Setti's avatar Valerio Setti Committed by Benjamin Cabé
Browse files

mbedtls: select ENTROPY_GENERATOR when a driver is available



This is based on the introduction of a helper Kconfig symbol in
"subsys/random/Kconfig" which is named CSPRNG_AVAILABLE. When this is
enabled it means that there is a "zephyr,entropy" property defined in the
device-tree, therefore Mbed TLS can select ENTROPY_GENERATOR to allow
the platform specific driver to be included into the build.

This commit also changes other locations where CSPRNG_ENABLED was used
moving it to CSPRNG_AVAILABLE in order to solve dependency loop
build failures.

Signed-off-by: default avatarValerio Setti <vsetti@baylibre.com>
parent 2cea407a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment