Special-case the Everest option in 1.x

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard
2025-12-16 12:59:11 +01:00
parent 5ef7e74c53
commit 45014a8dec
+7
View File
@@ -116,6 +116,13 @@ def dependencies_of_setting(cfg: config_common.Config,
return 'MBEDTLS_SSL_CLI_C:MBEDTLS_SSL_SRV_C:MBEDTLS_SSL_PROTO_DTLS'
if name.startswith('MBEDTLS_SSL_'):
return 'MBEDTLS_SSL_CLI_C:MBEDTLS_SSL_SRV_C'
if name == 'MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED' and \
not build_tree.is_mbedtls_3_6():
# In 1.x the module ecdh.c is removed. This option remains, with its
# historical name for compatibility. It is still only relevant when
# the built-in implementation of ECDH is enabled, but this condition
# is no longer expressed as MBEDTLS_ECDH_C.
return 'MBEDTLS_PSA_BUILTIN_ALG_ECDH'
for pos in re.finditer(r'_', name):
super_name = name[:pos.start()] + '_C'
if cfg.known(super_name):