mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-10-20 04:35:10 +08:00
Prepare for the removal of MBEDTLS_PLATFORM_GET_ENTROPY_ALT
We cannot remove it completely yet. It must remain in config.py so that it is not included in the full configuration. A temporary exception is required for it in analyze_outcomes.py. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@@ -180,8 +180,10 @@ def baremetal_adapter(name, value, active):
|
||||
"""Config adapter for "baremetal"."""
|
||||
if not is_boolean_setting(name, value):
|
||||
return active
|
||||
if name == 'MBEDTLS_PLATFORM_GET_ENTROPY_ALT':
|
||||
if name == 'MBEDTLS_PSA_BUILTIN_GET_ENTROPY':
|
||||
# No OS-provided entropy source
|
||||
return False
|
||||
if name == 'MBEDTLS_PSA_DRIVER_GET_ENTROPY':
|
||||
return True
|
||||
return include_in_full(name) and keep_in_baremetal(name)
|
||||
|
||||
|
Reference in New Issue
Block a user