Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reverse lookup linux kernel config option in menuconfig

If I find an option in .config that I would like to enable or disable. Is there a quick way to find it in menuconfig menu?

i.e. I don't want CONFIG_STRICT_DEVMEM to be set. I had to guess where I can find it in the make menuconfig sub-menu. Is there a programmatic way or a faster way to find the sub-menu, rather than "guess"?

like image 370
Patrick Avatar asked Nov 28 '11 22:11

Patrick


2 Answers

If I remember correctly, you can just hit

/DEVMEMEnter

and you'll be taken there? Look for the 'search'/'find' option. If my memory serves me well, it will even tell you about required dependencies

like image 158
sehe Avatar answered Oct 03 '22 02:10

sehe


You can use the key / while in menuconfig to research a particular string. This will give you a list of matching configuration option and their path.

You can also use a gui instead of the ncurse menuconfig by typing make xconfig.

Another way to do the lookup would be to use the find command like that:

find /path/to/kernel/sources -name Kconfig -exec grep -Hn config_pattern {} \;
like image 22
Quentin Casasnovas Avatar answered Oct 03 '22 02:10

Quentin Casasnovas