Programmatically set CONFIG_* to 'm', where possible
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Programmatically set CONFIG_* to 'm', where possible
Hi all,
I'd like to have a script that generates a .config file with everything possible set to build as a module. I will then pass that through meunconfig.
Here's what I've thought to do so far.
1. find all Kconfig files in the tree
2. for each Kconfig file, find config WHATEVER lines followed by lines containing tristate.
3. Now having the list of module-ready config options, sed replace the lines in the .config.
But:
(a) Such a script or tool might already exist. Do you know of one?
(b) (1) and (2), and heck possibly (3), can probably be done quickly by an awkspert.
(c) There may be a more obvious approach than putzing about with Kconfig files directly.
Pointers?
Thanks.
Last edited by jhwilliams; 11-28-2011 at 08:24 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.