lkml.org 
[lkml]   [2002]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to check the kernel compile options ?
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:

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).



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 ;-)

Andreas
--
Andreas Ferber - dev/consulting GmbH - Bielefeld, FRG
---------------------------------------------------------
+49 521 1365800 - af@devcon.net - www.devcon.net
-
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.125 / U:2.696 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site