Re: kconfig: Locate files relative to $srctree

Russell King (rmk@arm.linux.org.uk)
Sun, 24 Nov 2002 13:37:41 +0000


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/