[plug] kernel compile problems

ryan at is.as.geeky.as ryan at is.as.geeky.as
Fri Feb 7 09:44:24 WST 2003


On Fri, 2003-02-07 at 09:35, Anthony J. Breeds-Taurima wrote:
> On Fri, 7 Feb 2003, Carl Gherardi wrote:
> 
> > which one.
> 
> /lib/modules/`uanme -r`/build/.config
>  
> > Judging by the othjer response to the plug list this may well be the case.
> 
> Yes /me heads into the src tree to see where this magic happens.
> 

Is this it?

Reads in the first config file based on the order in *conf_confnames - I
guess my original tree never had it's own default .config file and it
went on to option 2.

=================================

scripts/kconfig/confdata.c 

<snip>

const char *conf_confnames[] = {
        ".config",
        "/lib/modules/$UNAME_RELEASE/.config",
        "/etc/kernel-config",
        "/boot/config-$UNAME_RELEASE",
        conf_defname,
        NULL,
};

<snip>

int conf_read(const char *name)
{
        FILE *in = NULL;
        char line[1024];
        char *p, *p2;
        int lineno = 0;
        struct symbol *sym;
        struct property *prop;
        struct expr *e;
        int i;

        if (name) {
                in = zconf_fopen(name);
        } else {
                const char **names = conf_confnames;
                while ((name = *names++)) {
                        name = conf_expand_value(name);
                        in = zconf_fopen(name);
                        if (in) {
                                printf("#\n"
                                       "# using defaults found in %s\n"
                                       "#\n", name);
                                break;
                        }
                }
        }

<snip>




More information about the plug mailing list