aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2008-11-27 19:12:07 +0000
committerJohn Rigby <john.rigby@linaro.org>2012-06-25 15:02:05 -0600
commitee32f696cfd2dec5a88758fcf25ecc1a21cae402 (patch)
tree2fafbadb98dec2a69105c08496f66c002b895268 /init
parent2a812e41e6e45ae917e18f856d8191ccb4ea5d02 (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/Kconfig9
-rw-r--r--init/version.c6
2 files changed, 14 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig
index d07dcf9fc8a..8f46d1aae7d 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -214,6 +214,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"