kconfig: gconf: fix behavior of a menu under a symbol in split view
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 29 Jun 2025 18:43:27 +0000 (03:43 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 26 Jul 2025 06:31:29 +0000 (15:31 +0900)
commit0c82f50a06aa13e6fc29e17081094489d57745fd
tree5f84c714e430dc59f26c9c53ac8d4afd25b561f7
parent1f937cdf32689279297185be72751ae1c5566baf
kconfig: gconf: fix behavior of a menu under a symbol in split view

A menu can be created under a symbol.

[Example]

  menu "outer menu"

  config A
          bool "A"

  menu "inner menu"
          depends on A

  config B
          bool "B"

  endmenu

  endmenu

After being re-parented by menu_finalize(), the menu tree is structured
like follows:

  menu "outer menu"
  \-- A
      \-- menu "inner menu"
          \-- B

In split view, the symbol A is shown in the right pane, so all of its
descendants must also be shown there. This has never worked correctly.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/gconf.c