Re: [PATCH 09/15] kconfig: replace KERNELVERSION usage by the mainmenu's prompt

Arnaud Lacombe
2010-09-11T16:05:34Z

Hi,

On Sat, Sep 11, 2010 at 11:51 AM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> @@ -797,15 +795,13 @@ int conf_write_autoconf(void)
>                return 1;
>        }
>
> -       sym = sym_lookup("KERNELVERSION", 0);
> -       sym_calc_value(sym);
>        time(&now);
>        fprintf(out, "#\n"
>                     "# Automatically generated make config: don't edit\n"
> -                    "# Linux kernel version: %s\n"
> +                    "# %s\n"
>                     "# %s"
>                     "#\n",
> -                    sym_get_string_value(sym), ctime(&now));
> +                    rootmenu.prompt->text, ctime(&now));
>        fprintf(tristate, "#\n"
>                          "# Automatically generated - do not edit\n"
>                          "\n");
d'oh! I missed one occurence of "Linux kernel version:..." right below
that one :(

Fixed in the `kbuild-generic-v6' branch of the github repo, as is the
extra strdup().

- Arnaud