Skip to contentSkip to conversation

Search in make menuconfig doesn't work properly

PATCH New Karel Kulhavy 3 participants 6 messages Sep 14, 2005 – Sep 24, 2005 Kconfig

lore
Share & tools
lore
#0 lore raw

I have 2.6.13 and if I press '/' in make menuconfig (Search Configuration Parameter, Enter Keyword) and enther "emulation", it doesn't find
CONFIG_BLK_DEV_IDESCSI - SCSI emulation support.

CL<

#1 lore raw
Quoted 4 lines · Karel Kulhavy

I have 2.6.13 and if I press '/' in make menuconfig (Search Configuration Parameter, Enter Keyword) and enther "emulation", it doesn't find
CONFIG_BLK_DEV_IDESCSI - SCSI emulation support.

AFAIK it only matches against the CONFIG_ symbols. If you want it to do more cook up a patch ;)

Signature · 1 line
". . . tell 'em we use Linux." -- Dave Chappelle
#2 lore raw
Quoted 9 lines · Cal Peake
Quoted 4 lines · Karel Kulhavy

I have 2.6.13 and if I press '/' in make menuconfig (Search Configuration Parameter, Enter Keyword) and enther "emulation", it doesn't find
CONFIG_BLK_DEV_IDESCSI - SCSI emulation support.

AFAIK it only matches against the CONFIG_ symbols. If you want it to do more cook up a patch ;)

I suggest "Enter Keyword" to be changed to "Enter Keyword to search in CONFIG_... symbols".

CL<

#4 lore raw
In reply to Cal Peake
Quoted 9 lines · Cal Peake
Quoted 4 lines · Karel Kulhavy

I have 2.6.13 and if I press '/' in make menuconfig (Search Configuration Parameter, Enter Keyword) and enther "emulation", it doesn't find
CONFIG_BLK_DEV_IDESCSI - SCSI emulation support.

AFAIK it only matches against the CONFIG_ symbols. If you want it to do more cook up a patch ;)

IOW, entering:

/BLK_DEV_IDESCSI

does produce the expected (but maybe not the desired?) results.

WFM.

Signature · 1 line
~Randy
#3 lore raw
In reply to Karel Kulhavy
Quoted 8 lines · Karel Kulhavy
Quoted 7 lines · Cal Peake
Quoted 4 lines · Karel Kulhavy

I have 2.6.13 and if I press '/' in make menuconfig (Search Configuration Parameter, Enter Keyword) and enther "emulation", it doesn't find
CONFIG_BLK_DEV_IDESCSI - SCSI emulation support.

Quoted 5 lines
Quoted 2 lines

AFAIK it only matches against the CONFIG_ symbols. If you want it to do more cook up a patch ;)

I suggest "Enter Keyword" to be changed to "Enter Keyword to search in CONFIG_... symbols".

Makes sense. or "Enter CONFIG_ symbol to search for: (omit CONFIG_)".

Please send a patch.

Signature · 1 line
~Randy
#5 lore raw

PATCH 1/1 clarify menuconfig /(search) help text

In reply to Karel Kulhavy

From: Randy Dunlap <[email protected]>

Add explicit text about
- where menuconfig '/' (search) searches for strings,
- that substrings are allowed, and
- that regular expressions are supported.

---

 scripts/kconfig/mconf.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
scripts/kconfig/mconf.c renamed from scripts/kconfig/mconf.c~search_keyword +2 -1
diff -Naurp linux-2614-rc2-git3/scripts/kconfig/mconf.c~search_keyword linux-2614-rc2-git3/scripts/kconfig/mconf.c
@@ -219,6 +219,7 @@ save_config_help[] = N_(
 search_help[] = N_(
 	"\n"
 	"Search for CONFIG_ symbols and display their relations.\n"
+	"Regular expressions are allowed.\n"
 	"Example: search for \"^FOO\"\n"
 	"Result:\n"
 	"-----------------------------------------------------------------\n"
@@ -531,7 +532,7 @@ again:
 	cprint("--title");
 	cprint(_("Search Configuration Parameter"));
 	cprint("--inputbox");
-	cprint(_("Enter Keyword"));
+	cprint(_("Enter CONFIG_ (sub)string to search for (omit CONFIG_)"));
 	cprint("10");
 	cprint("75");
 	cprint("");

---