[SOLVED] make menuconfig: Do you have to run 'make' every time?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If you are ecompiling the kernel from scratch you need it to build the programs.
If you are recompiling the kernel from the menu then you may have modified/patched the kernel... thus you may have added new options, deleted options, or changed dependencies... and you need to rebuild the programs.
The USUAL sequence (starting from scratch):
get an old configuration that you have used...
make oldconfig - this will use the .config file for initial answers, filling in any missing answers with defaults, and removing options that don't exist.
make menuconfig/xconfig/... - is generally used to edit configurations. I use it to look at what is there, and read about the various options.
Hi btmiller, that didn't quite work, but thanks for the input. Here is the result of the command:
Code:
~/linux-sunxi$ make oldconfig
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
I guess using 'make menuconfig' is really that big a deal, it's very fast anyway. I guess I'm more wondering if it should only be used the first time, or always.
My limited knowledge of Linux makes me think that something is getting 'made', and after that it should not be necessary anymore.
Last edited by linux_walt; 01-19-2015 at 05:03 PM.
I believe that is the correct result of running "make oldconfig".
Since there were no other messages, there are no options that were deleted, nor were there options without answers.
NOTE: Once the command runs, the updated .config file remains. If you did have an actual "old configuration" it is now gone. So to start over you would have to copy the "old configuration" to .config first to wipe out what has already been done.
If you are ecompiling the kernel from scratch you need it to build the programs.
If you are recompiling the kernel from the menu then you may have modified/patched the kernel... thus you may have added new options, deleted options, or changed dependencies... and you need to rebuild the programs.
The USUAL sequence (starting from scratch):
get an old configuration that you have used...
make oldconfig - this will use the .config file for initial answers, filling in any missing answers with defaults, and removing options that don't exist.
make menuconfig/xconfig/... - is generally used to edit configurations. I use it to look at what is there, and read about the various options.
Ok thank you for that. Was beginning to have a suspicion that maybe the editor needed 'rebuilt' information, just in case you changed something. I am only guessing, but I think the original configuration data came with the board manufacturer's linux-sunxi archive.
Too many suspicions and guesses though (on my part), obviously need to do some more reading (eg 'make menuconfig' and 'make oldconfig'). In the meantime I'll assume that the 'make' command, in one form or another, needs to be used every time. Thanks to you both.
Last edited by linux_walt; 01-19-2015 at 07:45 PM.
It only needs to be done if you are going to change configuration things. Once the configuration is done, you can make code changes pretty much all you want (as long as it doesn't change the Kconfig files ) without having to redo the configuration pass.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.