make menuconfig: Do you have to run 'make' every time?
Hello, I'm on my first attempt at configuring a kernel. In the sunxi how-to guide, under 'Tweak config', it says to run this command:
Code:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig I noticed though, after exiting the configuration editor, that another command was called after I entered 'make menuconfig': Code:
~/linux-sunxi$ make menuconfig Code:
scripts/kconfig/mconf Kconfig Shouldn't 'make menuconfig' need to be run only once? Is there another command to start the editor with your configuration file already loaded? |
It's been awhile since I've done this, but I think "make oldconfig" is what you're looking for.
|
Well... there can be several reasons to run it.
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 My limited knowledge of Linux makes me think that something is getting 'made', and after that it should not be necessary anymore. |
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. |
Quote:
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. |
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.
|
All times are GMT -5. The time now is 03:06 PM. |