Home > Archive > alt.os.linux > October 2002 > make oldconfig and .config





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author make oldconfig and .config
Knud Van Eeden

2002-10-02, 12:51 pm

Hi,

I started out trying to recompile my kernel (redhat 2.4.2-2) with a driver
patch, but i wanted to keep the settings/config from the known working
kernel.

I'm a bit confused about when i should use make oldconfig and when i should
restore a saved copy of .config.

I've looked in a few pieces of documentation and ive got even more confused
as arch/i386/defconfig a config/'kernel-version' seem to be mentioned as
ways of doing what im trying to do !

How are all these bits related to one another ? Have i missed a good doc
that explains all this ?

Thanks


Xanadu

2002-10-02, 12:51 pm

On Wed, 02 Oct 2002 10:49:06 -0400, Knud Van Eeden wrote:

> Hi,
>
> I started out trying to recompile my kernel (redhat 2.4.2-2) with a
> driver patch, but i wanted to keep the settings/config from the known
> working kernel.
>
> I'm a bit confused about when i should use make oldconfig and when i
> should restore a saved copy of .config.
>
> I've looked in a few pieces of documentation and ive got even more
> confused as arch/i386/defconfig a config/'kernel-version' seem to be
> mentioned as ways of doing what im trying to do !
>
> How are all these bits related to one another ? Have i missed a good doc
> that explains all this ?
>
> Thanks


I'm sure there's places that explain all this, but I've yet to use "make
oldconfig". To be honest, if I mess up a compile (or miss some modules,
or kernel level stuff) and need to redo it. I just cp .config out of
the kernel source dir, make mrproper, cp the .config back in and just
start at the begining; make menuconfig. All my settings are still there
and I just correct the parts I messed up on before. It's worked fine for
a few years, so I just stick with it. Call me old fashioned... :-)
Jon Portnoy

2002-10-02, 12:51 pm

In article <anf0o7$1ot$1$8302bc10@news.demon.co.uk>, Knud Van Eeden wrote:
> Hi,
>
> I started out trying to recompile my kernel (redhat 2.4.2-2) with a driver
> patch, but i wanted to keep the settings/config from the known working
> kernel.
>
> I'm a bit confused about when i should use make oldconfig and when i should
> restore a saved copy of .config.
>


Copy your old configuration file to .config and then run 'make oldconfig'
and you should be set.


--
Jon Portnoy
Richard Adams

2002-10-02, 2:25 pm

In article <anf5cu$hov$1@news2.cavtel.net>, "Xanadu" <xanadu@inorbit.com>
wrote:

>> How are all these bits related to one another ? Have i missed a good
>> doc that explains all this ?
>>
>> Thanks

>
> I'm sure there's places that explain all this, but I've yet to use "make
> oldconfig". To be honest, if I mess up a compile (or miss some modules,
> or kernel level stuff) and need to redo it. I just cp .config out of
> the kernel source dir, make mrproper, cp the .config back in and just
> start at the begining; make menuconfig. All my settings are still
> there and I just correct the parts I messed up on before. It's worked
> fine for a few years, so I just stick with it. Call me old fashioned...
> :-)


No need to do all that, simply do;
make config again, there is no need to do the cp and mrproper step.
make mrproper is a one off thing "strait after installing the source".

The advantage of editing .config is that it will "only" ask you for the
thing(s) you deleted, if you changed a "Y" to a "M" for instance, it will
not ask anything but simply silently change the default to M in the
nessacary places, so when you compile it will then be compiled as a
module.

--
Regards Richard
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net