* config file part of kernel!
@ 2008-04-22 16:53 Sanjeev Aditya Naga
2008-04-22 16:58 ` Randy.Dunlap
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Sanjeev Aditya Naga @ 2008-04-22 16:53 UTC (permalink / raw)
To: linux-kernel
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!??
Regards,
Sanjeev
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: config file part of kernel!
2008-04-22 16:53 config file part of kernel! Sanjeev Aditya Naga
@ 2008-04-22 16:58 ` Randy.Dunlap
2008-04-22 17:00 ` Dan Noe
2008-04-22 19:03 ` Jan Engelhardt
2 siblings, 0 replies; 5+ messages in thread
From: Randy.Dunlap @ 2008-04-22 16:58 UTC (permalink / raw)
To: Sanjeev Aditya Naga; +Cc: linux-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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: config file part of kernel!
2008-04-22 16:53 config file part of kernel! Sanjeev Aditya Naga
2008-04-22 16:58 ` Randy.Dunlap
@ 2008-04-22 17:00 ` Dan Noe
2008-04-22 19:03 ` Jan Engelhardt
2 siblings, 0 replies; 5+ messages in thread
From: Dan Noe @ 2008-04-22 17:00 UTC (permalink / raw)
To: Sanjeev Aditya Naga; +Cc: linux-kernel
On 4/22/2008 12:53, Sanjeev Aditya Naga wrote:
> 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!?
Enable the CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC option. It allows
you to access the active kernel's .config from /proc.
Cheers,
Dan
--
Dan Noe (dpn@lampreynetworks.com)
Software Engineer
Lamprey Networks, Inc.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: config file part of kernel!
2008-04-22 16:53 config file part of kernel! Sanjeev Aditya Naga
2008-04-22 16:58 ` Randy.Dunlap
2008-04-22 17:00 ` Dan Noe
@ 2008-04-22 19:03 ` Jan Engelhardt
2008-04-22 20:13 ` Rene Herman
2 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2008-04-22 19:03 UTC (permalink / raw)
To: Sanjeev Aditya Naga; +Cc: linux-kernel
On Tuesday 2008-04-22 18:53, Sanjeev Aditya Naga wrote:
>
>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!?
Surprise, what do you think /proc/config.gz is for? :-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: config file part of kernel!
2008-04-22 19:03 ` Jan Engelhardt
@ 2008-04-22 20:13 ` Rene Herman
0 siblings, 0 replies; 5+ messages in thread
From: Rene Herman @ 2008-04-22 20:13 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Sanjeev Aditya Naga, linux-kernel
On 22-04-08 21:03, Jan Engelhardt wrote:
> On Tuesday 2008-04-22 18:53, Sanjeev Aditya Naga wrote:
>> 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!?
>
> Surprise, what do you think /proc/config.gz is for? :-)
Now that you mention it -- why does the kernel export that thing gzipped in
fact? It has a zlib copy...
Rene.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-04-22 20:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-22 16:53 config file part of kernel! Sanjeev Aditya Naga
2008-04-22 16:58 ` Randy.Dunlap
2008-04-22 17:00 ` Dan Noe
2008-04-22 19:03 ` Jan Engelhardt
2008-04-22 20:13 ` Rene Herman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox