diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-11-28 15:12:16 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-11-28 15:12:16 +0100 |
| commit | 38dff36b0f97b8c87bc95f18fce2c8d7d5a860d5 (patch) | |
| tree | 04f0d5aae8615f2665dd1dd0412fd84b8c4dc61e | |
| parent | f95ac89944bdca833c5398967c274ab520c2ce7b (diff) | |
menuconfig: Improve comment re. multiply-defined choice symbols
The thing it's talking about usually happens when some file with a named
choice is included multiple times with different dependencies.
| -rwxr-xr-x | menuconfig.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/menuconfig.py b/menuconfig.py index d4d844e..2d4c367 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -1422,10 +1422,10 @@ def _shown_nodes(menu): # Note: Named choices are pretty broken in the C tools, and this is # super obscure, so you probably won't find much that relies on this. - # Do some additional work to avoid listing choice symbols twice if the - # entire choice is copy-pasted in multiple locations. We give the - # prompts at the current location precedence, in case it's not a 100% - # copy-paste. + # Do some additional work to avoid listing choice symbols twice if all + # or part of the choice is copied in multiple locations (e.g. by + # including some Kconfig file multiple times). We give the prompts at + # the current location precedence. seen_syms = {node.item for node in rec(menu.list) if isinstance(node.item, Symbol)} res = [] |
