From dd4b398b7a7f50f01dfff202975e65bc95043729 Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Thu, 27 Nov 2008 19:12:07 +0000 Subject: UBUNTU: SAUCE: (no-up) version: Implement version_signature proc file. Signed-off-by: Andy Whitcroft Acked-by: Tim Gardener --- init/Kconfig | 9 +++++++++ init/version.c | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'init') diff --git a/init/Kconfig b/init/Kconfig index 6cfd71d0646..b32ca50d4e7 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -212,6 +212,15 @@ config DEFAULT_HOSTNAME but you may wish to use a different default here to make a minimal system more usable with less configuration. +config VERSION_SIGNATURE + string "Arbitrary version signature" + help + This string will be created in a file, /proc/version_signature. It + is useful in determining arbitrary data about your kernel. For instance, + if you have several kernels of the same version, but need to keep track + of a revision of the same kernel, but not affect it's ability to load + compatible modules, this is the easiest way to do that. + config SWAP bool "Support for paging of anonymous memory (swap)" depends on MMU && BLOCK diff --git a/init/version.c b/init/version.c index 86fe0ccb997..3a9433a39d2 100644 --- a/init/version.c +++ b/init/version.c @@ -40,7 +40,11 @@ EXPORT_SYMBOL_GPL(init_uts_ns); /* FIXED STRINGS! Don't touch! */ const char linux_banner[] = "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" - LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n"; + LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION +#ifdef CONFIG_VERSION_SIGNATURE + " (" CONFIG_VERSION_SIGNATURE ")" +#endif + "\n"; const char linux_proc_banner[] = "%s version %s" -- cgit v1.2.3