mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-06-05 21:15:09 +00:00
PSA_WANT_xxx is only meaningful when PSA crypto is enabled
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -80,7 +80,7 @@ def dependencies_of_setting(cfg: config_common.Config,
|
|||||||
be negated by prefixing them with '!'. This is the same syntax as a
|
be negated by prefixing them with '!'. This is the same syntax as a
|
||||||
depends_on directive in test data.
|
depends_on directive in test data.
|
||||||
"""
|
"""
|
||||||
#pylint: disable=too-many-return-statements
|
#pylint: disable=too-many-branches,too-many-return-statements
|
||||||
name = setting.name
|
name = setting.name
|
||||||
if name in SIMPLE_DEPENDENCIES:
|
if name in SIMPLE_DEPENDENCIES:
|
||||||
return SIMPLE_DEPENDENCIES[name]
|
return SIMPLE_DEPENDENCIES[name]
|
||||||
@@ -114,9 +114,12 @@ def dependencies_of_setting(cfg: config_common.Config,
|
|||||||
super_name = name[:pos.start()] + '_C'
|
super_name = name[:pos.start()] + '_C'
|
||||||
if cfg.known(super_name):
|
if cfg.known(super_name):
|
||||||
return super_name
|
return super_name
|
||||||
m = PSA_WANT_KEY_TYPE_KEY_PAIR_RE.match(name)
|
if name.startswith('PSA_WANT_'):
|
||||||
if m and m.group('operation') != 'BASIC':
|
deps = 'MBEDTLS_PSA_CRYPTO_CLIENT'
|
||||||
return m.group('prefix') + 'BASIC'
|
m = PSA_WANT_KEY_TYPE_KEY_PAIR_RE.match(name)
|
||||||
|
if m and m.group('operation') != 'BASIC':
|
||||||
|
deps += ':' + m.group('prefix') + 'BASIC'
|
||||||
|
return deps
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def conditions_for_setting(cfg: config_common.Config,
|
def conditions_for_setting(cfg: config_common.Config,
|
||||||
|
|||||||
Reference in New Issue
Block a user