From 36571d6d8a99a41c9ddf8827210f796b85b01a08 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 19 Sep 2024 19:58:56 +0200 Subject: [PATCH] Change "realfull" to activate everything Change "realfull" to activate everything. After investigation, it seems that having "realfull" not activate everything was a historical oddity due to proximity with "full", not a goal in itself. https://github.com/Mbed-TLS/mbedtls/issues/520#issuecomment-727190862 https://github.com/Mbed-TLS/mbedtls/pull/965/files#r523409092 This changes the output of `scripts/config.py realfull`: now all non-boolean options are uncommented. Signed-off-by: Gilles Peskine --- scripts/config.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/config.py b/scripts/config.py index 8b6aa9a24f..82f1ec9124 100755 --- a/scripts/config.py +++ b/scripts/config.py @@ -38,18 +38,14 @@ def is_boolean_setting(name, value): return True return False -def realfull_adapter(_name, _value, active, section): - """Activate all symbols found in the global and boolean feature sections. +def realfull_adapter(_name, _value, _active, _section): + """Activate all symbols. This is intended for building the documentation, including the documentation of settings that are activated by defining an optional - preprocessor macro. - - Do not activate definitions in the section containing symbols that are - supposed to be defined and documented in their own module. + preprocessor macro. There is no expectation that the resulting + configuration can be built. """ - if section == 'Module configuration options': - return active return True PSA_UNSUPPORTED_FEATURE = frozenset([