lkml.org 
[lkml]   [2002]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to check the kernel compile options ?
On Sat, 16 Feb 2002, Andreas Ferber wrote:

| On Fri, Feb 15, 2002 at 03:51:43PM -0700, Andreas Dilger wrote:
| >
| > Note also that it is enough to store the config options without the
| > leading CONFIG_ part, and then use 'grep "[A-Z0-9]*=[ym]$"' to get
| > the actual config strings. You can add a final 'sed "s/^/CONFIG_/"'
| > step to return it to the original format. So:

except that not all options are "=[ynm]$"; some are string values.

| Note that you also need some way to keep the config symbols which are
| set to "n" and commented out in the .config. Otherwise you will have
| to answer a lot of questions on "make oldconfig" ("yes n | make
| oldconfig" isn't an option, as this doesn't tell you which config
| symbols have been added).

Oh, thanks for pointing that out.

Will
yes n | make oldconfig
build a kernel with the current y/m options still intact,
but any new or missing options set to 'n'?
That doesn't sound so bad, but not optimal either.

| I have actually done my own patch to include the .config into the
| kernel image some time ago. It provides the .config via
| /proc/config{,.gz,.bz2} (the compression method to use is
| configurable). Apart from compression, it doesn't try to do anything
| special to reduce size, because I don't have any machines where it
| actually matters if the kernel needs some kB more or less memory.
|
| I didn't bother to submit the patch because of the discussions on this
| topic in the past, instead I keep patching kernel sources myself
| before compiling a kernel. Anyone interested can get the patch from
| <http://www.myipv6.de/patches/kconfig/>. Patches for new kernel
| versions are uploaded occasionally, everytime I don't forget to rediff
| it before applying other patches to the source tree ;-) (possibly
| conflicting parts for other kernel versions are Makefiles, config.in
| or Configure.help, which can all be hand-applied easily, even if you
| are not a kernel hacker ;-). It works for both 2.2 and 2.4 (probably
| 2.5 also, didn't test yet).
|
| Any comments on the patch are welcome ;-)

I looked. It does nicely if that's where you want to store and find
the .config. I'd rather have it associated with a kernel image file
and accessible even if the kernel isn't running.

Thanks,
--
~Randy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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