diff options
author | Andy Whitcroft <apw@canonical.com> | 2008-11-27 19:12:07 +0000 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-06-24 16:27:53 -0600 |
commit | 782f865a6ae693a0433e6a508553328da52a549e (patch) | |
tree | 2f357901c63651b92068ff88987d3d22bcb2e27a /init | |
parent | a8fc56ccba7c65883afbd1b368244d3e09697768 (diff) |
UBUNTU: SAUCE: (no-up) version: Implement version_signature proc file.
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Tim Gardener <tim.gardner@canonical.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 9 | ||||
-rw-r--r-- | init/version.c | 6 |
2 files changed, 14 insertions, 1 deletions
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" |