[lkml]   [2002]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: How to check the kernel compile options ?
On Wed, 13 Feb 2002, Richard B. Johnson wrote:

> The advantage, of course is that if you are executing the kernel,
> it can give you all the information necessary to recreate a
> new one from the sources because its .config is embeded into
> itself. Once you have the ".config" file, you just do `make oldconfig`
> and you are home free.

But it does no such thing! You not only need the config file, you need the
source. So you now need to add to the kernel the entire source tree from
which it was built, or perhaps just a diff file from a source,
which you will suitably compress, of course.

And without all that information you can't be sure of being able to build
a working kernel, only of knowing what options you selected, but not what
they (exactly) meant. Don't forget to save the C compiler and any
libraries and system include files inn the kernel as well, can't be half

This feature just isn't all that useful, I use an install script which
does copy the config file, compresses it into a zip with a file comment of
the MD5 of the kernel image, and adds the Makefile as well. I build
kernels almost every week, I support a whole raft of machines, and after I
got this whole nice script running I have used about twice a year.

I don't want anything added to my boot kernel image which isn't absolutely
needed to get the machine up, not documentation, not digitized cartoons,
not comments, etc. This is not an issue if you boot from a fat multi-GB
hard drive, it is if you boot from ROM, Compact flash pretending to be a
tiny IDE disk, need to be able to recovery boot from floppy, etc.

The feature would be nice, but "I can't manage to keep my kernel and
modules together" is not reason to oppose putting config in a module, or a
text file, or anywhere better organized people WOULD be able to find it.
If you want an option to put all that stuff you don't need into the boot
image, go to it, just don't make it useless to other people.

bill davidsen <>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:18    [W:0.168 / U:1.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site