diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2007-01-10 14:45:28 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-10 09:33:59 -0800 |
commit | 3eb3c740f51c2126b53c2dde974c1c57e634aa7b (patch) | |
tree | bbc9a1152685d8ed97f231e4ff161d01d58f0fe2 /init | |
parent | 8edf51a5ee38eb40de5449e131fd36450a229430 (diff) | |
download | kernel_samsung_smdk4412-3eb3c740f51c2126b53c2dde974c1c57e634aa7b.zip kernel_samsung_smdk4412-3eb3c740f51c2126b53c2dde974c1c57e634aa7b.tar.gz kernel_samsung_smdk4412-3eb3c740f51c2126b53c2dde974c1c57e634aa7b.tar.bz2 |
[PATCH] fix linux banner format string
Revert previous attempts at messing with the linux banner string and
simply use a separate format string for proc.
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Acked-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: Andrey Borzenkov <arvidjaar@mail.ru>
Cc: Andrew Morton <akpm@osdl.org>
Cc: Andy Whitcroft <apw@shadowen.org>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/Makefile | 10 | ||||
-rw-r--r-- | init/main.c | 8 | ||||
-rw-r--r-- | init/version.c | 10 |
3 files changed, 19 insertions, 9 deletions
diff --git a/init/Makefile b/init/Makefile index 9cd871c..633a268 100644 --- a/init/Makefile +++ b/init/Makefile @@ -15,6 +15,14 @@ clean-files := ../include/linux/compile.h # dependencies on generated files need to be listed explicitly -$(obj)/main.o: include/linux/compile.h $(obj)/version.o: include/linux/compile.h +# compile.h changes depending on hostname, generation number, etc, +# so we regenerate it always. +# mkcompile_h will make sure to only update the +# actual file if its content has changed. + +include/linux/compile.h: FORCE + @echo ' CHK $@' + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ + "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(CFLAGS)" diff --git a/init/main.c b/init/main.c index bc27d72..d908d3e 100644 --- a/init/main.c +++ b/init/main.c @@ -50,9 +50,7 @@ #include <linux/buffer_head.h> #include <linux/debug_locks.h> #include <linux/lockdep.h> -#include <linux/utsrelease.h> #include <linux/pid_namespace.h> -#include <linux/compile.h> #include <linux/device.h> #include <asm/io.h> @@ -482,12 +480,6 @@ void __init __attribute__((weak)) smp_setup_processor_id(void) { } -static const char linux_banner[] = - "Linux version " UTS_RELEASE - " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")" - " (" LINUX_COMPILER ")" - " " UTS_VERSION "\n"; - asmlinkage void __init start_kernel(void) { char * command_line; diff --git a/init/version.c b/init/version.c index 9d96d36..55abe76 100644 --- a/init/version.c +++ b/init/version.c @@ -33,3 +33,13 @@ struct uts_namespace init_uts_ns = { }, }; EXPORT_SYMBOL_GPL(init_uts_ns); + +/* FIXED STRING! Don't touch! */ +const char __init linux_banner[] = + "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" + LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n"; + +const char linux_proc_banner[] = + "%s version %s" + " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")" + " (" LINUX_COMPILER ") %s\n"; |