From 38dff36b0f97b8c87bc95f18fce2c8d7d5a860d5 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 28 Nov 2018 15:12:16 +0100 Subject: 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. --- menuconfig.py | 8 ++++---- 1 file 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 = [] -- cgit v1.2.3