From: Bernhard Walle <bwalle@suse.de> Modify the ncurses configuration tool ('make menuconfig') in a way that the user can enter the search string (/) both with or without the leading 'CONFIG_'. This simplifies using copy & paste from .config files because you can select the whole word. Signed-off-by: Bernhard Walle <bwalle@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> --- scripts/kconfig/mconf.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index d0e4fa5..d2c2a42 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -419,11 +419,13 @@ static void search_conf(void) { struct symbol **sym_arr; struct gstr res; + char *dialog_input; int dres; again: dialog_clear(); dres = dialog_inputbox(_("Search Configuration Parameter"), - _("Enter CONFIG_ (sub)string to search for (omit CONFIG_)"), + _("Enter CONFIG_ (sub)string to search for " + "(with or without \"CONFIG\")"), 10, 75, ""); switch (dres) { case 0: @@ -435,7 +437,12 @@ again: return; } - sym_arr = sym_re_search(dialog_input_result); + /* strip CONFIG_ if necessary */ + dialog_input = dialog_input_result; + if (strncasecmp(dialog_input_result, "CONFIG_", 7) == 0) + dialog_input += 7; + + sym_arr = sym_re_search(dialog_input); res = get_relations_str(sym_arr); free(sym_arr); show_textbox(_("Search Results"), str_get(&res), 0, 0); -- 1.5.0.6 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 01/33] kbuild: asm-offsets.h is now cleaned with O=.. builds
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 02/33] kbuild: New 'cc-fullversion' macro
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 03/33] powerpc: Refuse to build 64-bit with GCC-4.2.0 and CONFIG_MODULES
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 04/33] kbuild: document cc-fullversion
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 05/33] kbuild: avoid environment to set variables used by kbuild
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 07/33] kconfig: use POSIX equality test in check-lxdialog.sh
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 08/33] kbuild: add support for reading stdin with gen_init_cpio
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 09/33] kbuild: add support for squashing uid/gid in gen_initramfs_list.sh
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 10/33] kconfig: fix update-po-config
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 11/33] kbuild: make better section mismatch reports on i386 and mips
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 12/33] kbuild: make better section mismatch reports on arm
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 13/33] kbuild: suppress modpost warnings for references from the .toc section as used by powerpc
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 14/33] kbuild: .paravirtprobe section is obsolete, so modpost doesn't need to handle it
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 15/33] kbuild: ignore section mismatch warnings originating from .note section
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 16/33] kbuild: refactor code in modpost to improve maintainability
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 17/33] kbuild: consolidate section checks
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 18/33] kbuild: warn about references from .init.text to .exit.text
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 19/33] kbuild: remove hardcoded apic_es7000 from modpost
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 21/33] kbuild: whitelist references from variables named _timer to .init.text
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 22/33] kbuild: do section mismatch check on full vmlinux
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 23/33] modpost white list pattern adjustment
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 24/33] Whitelist references from __dbe_table to .init
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- From: Sam Ravnborg <sam@ravnborg.org>
- [PATCH 01/33] kbuild: asm-offsets.h is now cleaned with O=.. builds
- Prev by Date: [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- Next by Date: [PATCH 22/33] kbuild: do section mismatch check on full vmlinux
- Previous by thread: [PATCH 25/33] kbuild: use POSIX BRE in headers install target
- Next by thread: [PATCH 28/33] kconfig: reset generated values only if Kconfig and .config agree.
- Index(es):
![]() |