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-08-15 23:45:40 -0600
commitda4601c0e14f638c0ce7072cedd874124e26466b (patch)
tree17fed53f15f407f055d3dffec732ecbb88cbf648 /init
parent7fbad0f99c17297113933ae74651926dfccaccbb (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 af6c7f8ba01..f52d40a9222 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"