From b7bf1e2bd7e78e4baa371428d4201608721f121e Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Tue, 1 Feb 2022 10:35:10 +0100 Subject: [PATCH] dist/tools/genconfig: add error on hidden symbols This extends the error messages to check if a symbol could not be set due to its visibility. --- dist/tools/kconfiglib/genconfig.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/tools/kconfiglib/genconfig.py b/dist/tools/kconfiglib/genconfig.py index 093d78507a..b428c53aa6 100755 --- a/dist/tools/kconfiglib/genconfig.py +++ b/dist/tools/kconfiglib/genconfig.py @@ -173,6 +173,9 @@ def check_config_symbols(kconf): if rng is not None: msg = " Check that the value is in the correct range:" msg += "[{} - {}] {}\n".format(rng[0], rng[1], rng[2]) + elif not sym.visibility: + msg = " The symbol is not visible, either it is not " + msg += "configurable or its prompt is hidden." log_error(msg)