From: Sam Ravnborg Date: Tue, 18 Sep 2007 19:12:26 +0000 (+0200) Subject: kconfig: make comments stand out in menuconfig X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=48874077ddd6c0c444758059af2cf77c10204ece;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git kconfig: make comments stand out in menuconfig Matěj Laitl noticed that there was no way to distingush between comments and un-selectable menu lines. This patch marks comments with *** comment *** Cc: Matěj Laitl Signed-off-by: Sam Ravnborg --- diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index bc5854ed6055..2ee12a744641 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -481,6 +481,14 @@ static void build_conf(struct menu *menu) if (single_menu_mode && menu->data) goto conf_childs; return; + case P_COMMENT: + if (prompt) { + child_count++; + item_make(" %*c*** %s ***", indent + 1, ' ', prompt); + item_set_tag(':'); + item_set_data(menu); + } + break; default: if (prompt) { child_count++;