lkml.org 
[lkml]   [2009]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 7/7] kconfig: search for a config to base the local(mod|yes)config on

On Mon, 4 May 2009, Peter Zijlstra wrote:

> On Mon, 2009-05-04 at 14:15 +0200, Andi Kleen wrote:
> > Steven Rostedt <rostedt@goodmis.org> writes:
> >
> > > Here's the list and order of search:
> > >
> > > /proc/config.gz
> > > /boot/vmlinuz-`uname -r`
> > > vmlinux # local to the directory
> > > /lib/modules/`uname -r`/kernel/kernel/configs.ko
> > > kernel/configs.ko
> > > kernel/configs.o
> > > .config
> >
> >
> > That seems like the wrong order. ./.config should always be first for
> > compatibility.
> >
> > That order would completely wreck all my build scripts, and I suspect
> > others too.
>
> Quite, except that I hardly ever have a ./.config since I make extensive
> use of O=foo

I'm fine with using .config as first choice (that is what the script
originally did) but I wanted to make it as easy for non developers as
possible. Taking from /proc or /boot was most likely the best to give a
minimal boot environment.

But I can see why .config is probably the best choice for having the most
power with the tool. It is how you can always force it to do something you
want, and is the most logical place to expect the script to read from.

I'll update it.

Thanks,

-- Steve



\
 
 \ /
  Last update: 2009-05-04 16:49    [W:0.040 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site