diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-07-20 18:00:36 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-07-25 15:14:26 -0400 |
commit | 03d29122738f0bd81afd44b1f566e64ebf8d06fe (patch) | |
tree | 10038c037b7b82577fec387fa6cd8042fc8633e7 /scripts/kconfig/mconf.c | |
parent | 4a645d5ea65baaa5736bcb566673bf4a351b2ad8 (diff) |
kconfig: attach help text to menus
Roman Zippel wrote:
> A simple example would be
> help texts, right now they are per symbol, but they should really be per
> menu, so archs can provide different help texts for something.
This patch does this and at the same time introduce a few API
funtions used to access the help text.
The relevant api functions are introduced in the various frontends.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r-- | scripts/kconfig/mconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index d2c2a429887b..bc5854ed6055 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c | |||
@@ -725,11 +725,11 @@ static void show_help(struct menu *menu) | |||
725 | struct gstr help = str_new(); | 725 | struct gstr help = str_new(); |
726 | struct symbol *sym = menu->sym; | 726 | struct symbol *sym = menu->sym; |
727 | 727 | ||
728 | if (sym->help) | 728 | if (menu_has_help(menu)) |
729 | { | 729 | { |
730 | if (sym->name) { | 730 | if (sym->name) { |
731 | str_printf(&help, "CONFIG_%s:\n\n", sym->name); | 731 | str_printf(&help, "CONFIG_%s:\n\n", sym->name); |
732 | str_append(&help, _(sym->help)); | 732 | str_append(&help, _(menu_get_help(menu))); |
733 | str_append(&help, "\n"); | 733 | str_append(&help, "\n"); |
734 | } | 734 | } |
735 | } else { | 735 | } else { |