lkml.org 
[lkml]   [2002]   [Nov]   [24]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 24 Nov 2002 13:37:41 +0000
FromRussell King <>
SubjectRe: kconfig: Locate files relative to $srctree
On Sun, Nov 24, 2002 at 02:56:22AM +0100, Roman Zippel wrote:
> >  const char *conf_confnames[] = {
> >  	".config",
> >  	"/lib/modules/$UNAME_RELEASE/.config",
> >  	"/etc/kernel-config",
> >  	"/boot/config-$UNAME_RELEASE",
> > -	conf_defname,
> > +	"arch/$ARCH/defconfig",			/* index DEFNAME */
> > +	"$" SRCTREE "/arch/$ARCH/defconfig",	/* index DEFALTNAME */
> >  	NULL,
> >  };
> 
> This is not good. At some point I maybe want to make these configurable.
> I changed the patch to always use zconf_fopen(), which will try the 
> alternative prefix for relative paths.
> I couldn't test this very much as you forgot the kbuild script. :)
> Anyway, below is an alternative version.

One thing that does slightly annoy me with the new config tools is the
handling of the default configuration when you're cross-building.  In
this circumstance, looking for the running kernel configuration seems
wrong; it definitely isn't going to be the configuration you want to
start from.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

-
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 12:31    [from the cache]
©2003-2008