Skip to contentSkip to conversation

kconfig: add a function to dump all menu entries in a tree-like format

PATCH New Masahiro Yamada 1 participant 1 message Jun 29, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kconfig: add a function to dump all menu entries in a tree-like format

This is useful for debugging purposes. menu_finalize() re-parents menu entries, and this function can be used to dump the final structure of the menu tree.

---

 scripts/kconfig/lkc.h  |  1 +
 scripts/kconfig/menu.c | 74 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)
scripts/kconfig/lkc.h +1 -0
index 37b606c74bff..56548efc14d7 100644
@@ -102,6 +102,7 @@ struct menu *menu_get_menu_or_parent_menu(struct menu *menu);
 int get_jump_key_char(void);
 struct gstr get_relations_str(struct symbol **sym_arr, struct list_head *head);
 void menu_get_ext_help(struct menu *menu, struct gstr *help);
+void menu_dump(void);
 
 /* symbol.c */
 void sym_clear_all_valid(void);
scripts/kconfig/menu.c +74 -0

77 lines not on this page · raw message

Signature · 1 line
2.43.0