Re: How do you tell what options are compiled in your kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Douglas Phillipson wrote:

The easiest way is to do a make "oldconfig". That will load all of your old
configuration and then do a "make xconfig" or which ever one you use.



Forgive me for not yet being a kernel expert. Before I do this what exactly does "make oldconfig" do?

Where does it get the config file from?

If there is no file named .config, then it will examine /boot/kernel.h and try to get a config from the "configs" directory that matches the running kernel. That config should match /boot/config-`uname -r` exactly.


If .config exists, "make oldconfig" will use that.

If you are copying a config file to start from, why would you do a "make oldconfig"?

You wouldn't need to. Under stock kernels, "make oldconfig" will ask you for the settings you'd like, individually. Under Red Hat's patched kernels, "make oldconfig" will try to find a prepared config that matches your arch, indicated by /boot/kernel.h. In either case, if .config exists, then you'll only be asked about new configuration items (which there should not be any of, if it uses one of the prepared configs).



-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux