1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

depends.py: Add warning log

Add warning log when disabling a configuration
option that does not exist.

When the removal of the legacy crypto config
options is completed, the warning will be
reverted to an error.

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron
2025-07-15 09:32:03 +02:00
parent e0b06eb3a1
commit 50f99caf42

View File

@ -110,6 +110,10 @@ value can be either True/False (set/unset config option), or a string,
which will make a symbol defined with a certain value."""
if not option_exists(conf, option):
if value is False:
log_line(
f'Warning, disabling {option} that does not exist in {conf.filename}',
color=colors.cyan
)
return True
log_line('Symbol {} was not found in {}'.format(option, conf.filename), color=colors.red)
return False