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:
@ -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
|
||||
|
Reference in New Issue
Block a user