Skip to content
Browse files

genrest: Include all parents in menu paths

Previously, symbols not defined with 'menuconfig' with children weren't
listed in the children's menu paths. It was deliberate, but it's
probably an anti-feature in retrospect, because it can make it harder to
find stuff by following the menu path.

Don't try to be clever and just list all the parent nodes in the menu

Signed-off-by: Ulf Magnusson <>
  • Loading branch information...
ulfalizer authored and nashif committed Apr 11, 2019
1 parent aec74f6 commit 60c395024fe4acac8631451a4f06da9b037d44ff
Showing with 1 addition and 11 deletions.
  1. +1 −11 doc/scripts/
@@ -353,18 +353,8 @@ def include_path(node):
def menu_path(node):
path = ""

while True:
# This excludes indented submenus created in the menuconfig
# interface when items depend on the preceding symbol.
# is_menuconfig means anything that would be shown as a separate
# menu (not indented): proper 'menu's, menuconfig symbols, and
# choices.
while node.parent is not node.kconfig.top_node:
node = node.parent
while not node.is_menuconfig:
node = node.parent

if node is node.kconfig.top_node:

# Promptless choices can show up as parents, e.g. when people
# define choices in multiple locations to add symbols. Use

0 comments on commit 60c3950

Please sign in to comment.
You can’t perform that action at this time.