lkml.org 
[lkml]   [2008]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: config file part of kernel!
On Tue, 22 Apr 2008, Sanjeev Aditya Naga wrote:

> Hi,
>
> Will it be good, if we make the `config` file (used to
> build a kernel) part of the built kernel. So that one in
> need, can extract it from the kernel using some
> userspace tool!?
>
> During the configuration of kernel, we usually set
> the required functionality. However, if we delete the
> sources/config file or loose the config file, but later
> we wanted to add up some module(s) to the same
> kernel, it'd be great if we will be able to extract some
> info from the kernel along with the config params!??

This is already possible.

CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y

The former includes the config file in the kernel image.
The latter one puts it into /proc/config.gz as well.

--
~Randy


\
 
 \ /
  Last update: 2008-04-22 19:01    [W:0.149 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site