Messages in this thread Patch in this message | | | Date | Thu, 17 Jun 2004 22:06:51 -0700 | From | "Randy.Dunlap" <> | Subject | [PATCH] save kernel version in .config file |
| |
Is this interesting to anyone besides me?
Save kernel version info when writing .config file.
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:= scripts/kconfig/confdata.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)
diff -Naurp ./scripts/kconfig/confdata.c~config_version ./scripts/kconfig/confdata.c --- ./scripts/kconfig/confdata.c~config_version 2004-06-15 22:20:21.000000000 -0700 +++ ./scripts/kconfig/confdata.c 2004-06-17 22:00:22.000000000 -0700 @@ -301,14 +301,19 @@ int conf_write(const char *name) if (!out_h) return 1; } + sym = sym_lookup("KERNELRELEASE", 0); fprintf(out, "#\n" "# Automatically generated make config: don't edit\n" - "#\n"); + "# for Linux kernel version: %s\n" + "#\n", + (char *)sym->curr.val); if (out_h) fprintf(out_h, "/*\n" " * Automatically generated C config: don't edit\n" + " * for Linux kernel version: %s\n" " */\n" - "#define AUTOCONF_INCLUDED\n"); + "#define AUTOCONF_INCLUDED\n", + (char *)sym->curr.val); if (!sym_change_count) sym_clear_all_valid(); - 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/
| |