menuconfig tips of the day, given to me by Yann E. Morin, the Crosstool-NG maintainer, kconfig-frontends maintainer, and also taking care of a number of kconfig related patches in the kernel.

Everyone knows you can search options in menuconfig by hitting / and then a search keyword.

Did you know that you can actually use regexps in there? For example, if you search "PCI" in the kernel, you're going to get gazillions of hits. Search ^PCI$ and the only hit will be the CONFIG_PCI option. In Buildroot, something like ^BR2_.*_QT5 also works.

So, now you've found your option. The search result tells you where this option is located in the menu hierarchy. Until not long ago, you had to remember the path into the menu hierarchy to go enable/disable/modify the option itself. But nowadays, there is a little digit between parenthesis next to each search result. For example (2). Simply press this digit on your keyboard, and menuconfig automatically jumps to this option!

I think Yann saved several minutes of my time each day, thanks to teaching me those new simple but cool features. I hope you'll enjoy them as well.
Shared publiclyView activity