mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-10-20 03:32:32 +03: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)
|
||||
|
||||
|
@@ -64,7 +64,8 @@ doit()
|
||||
scripts/config.py unset MBEDTLS_NET_C || true
|
||||
scripts/config.py unset MBEDTLS_TIMING_C || true
|
||||
scripts/config.py unset MBEDTLS_FS_IO || true
|
||||
scripts/config.py --force set MBEDTLS_PLATFORM_GET_ENTROPY_ALT || true
|
||||
scripts/config.py unset MBEDTLS_PSA_BUILTIN_GET_ENTROPY || true
|
||||
scripts/config.py --force set MBEDTLS_PSA_DRIVER_GET_ENTROPY || true
|
||||
} >/dev/null 2>&1
|
||||
|
||||
make clean >/dev/null
|
||||
|
Reference in New Issue
Block a user