mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-10-20 21:50:48 +08:00
Allow setting removed options that are now always on
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -16,6 +16,11 @@ class CryptoInternal(SubprojectInternal):
|
|||||||
class CryptoOption(SubprojectOption):
|
class CryptoOption(SubprojectOption):
|
||||||
SUBPROJECT = 'psa/crypto_config.h'
|
SUBPROJECT = 'psa/crypto_config.h'
|
||||||
|
|
||||||
|
ALWAYS_ENABLED_SINCE_4_0 = frozenset([
|
||||||
|
'MBEDTLS_PSA_CRYPTO_CONFIG',
|
||||||
|
'MBEDTLS_USE_PSA_CRYPTO',
|
||||||
|
])
|
||||||
|
|
||||||
def checkers_for_removed_options() -> Iterator[Checker]:
|
def checkers_for_removed_options() -> Iterator[Checker]:
|
||||||
"""Discover removed options. Yield corresponding checkers."""
|
"""Discover removed options. Yield corresponding checkers."""
|
||||||
history = config_history.ConfigHistory()
|
history = config_history.ConfigHistory()
|
||||||
@@ -24,6 +29,8 @@ def checkers_for_removed_options() -> Iterator[Checker]:
|
|||||||
crypto_public = history.options('tfpsacrypto', '1.0')
|
crypto_public = history.options('tfpsacrypto', '1.0')
|
||||||
crypto_internal = history.internal('tfpsacrypto', '1.0')
|
crypto_internal = history.internal('tfpsacrypto', '1.0')
|
||||||
for option in sorted(old_public - new_public):
|
for option in sorted(old_public - new_public):
|
||||||
|
if option in ALWAYS_ENABLED_SINCE_4_0:
|
||||||
|
continue
|
||||||
if option in crypto_public:
|
if option in crypto_public:
|
||||||
yield CryptoOption(option)
|
yield CryptoOption(option)
|
||||||
elif option in crypto_internal:
|
elif option in crypto_internal:
|
||||||
|
Reference in New Issue
Block a user