[PATCH] Add compile domain (was: Re: [PATCH] Well, Linus seems to like Lordi...)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>If we're going to have release code names for the kernel, might as well
>advertise them somewhere. :)
>
>--- a/init/version.c
>+++ b/init/version.c
>@@ -29,5 +29,6 @@ struct new_utsname system_utsname = {
> EXPORT_SYMBOL(system_utsname);
> 
> const char linux_banner[] =
>-	"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
>-	LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
>+	"Linux version " UTS_RELEASE " \"" LINUX_CODE_NAME "\" (" 
>+	LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") "
>+	UTS_VERSION "\n";
>-

As for extending the linux_banner, here's a real patch in my line...

Signed-off-by: Jan Engelhardt <[email protected]>

diff --fast -Ndpru linux-2.6.17-rc5~/arch/i386/boot/setup.S linux-2.6.17-rc5+/arch/i386/boot/setup.S
--- linux-2.6.17-rc5~/arch/i386/boot/setup.S	2006-05-25 03:50:17.000000000 +0200
+++ linux-2.6.17-rc5+/arch/i386/boot/setup.S	2006-05-25 18:35:04.661512000 +0200
@@ -862,6 +862,8 @@ kernel_version:	.ascii	UTS_RELEASE
 		.ascii	LINUX_COMPILE_BY
 		.ascii	"@"
 		.ascii	LINUX_COMPILE_HOST
+                .ascii  "."
+                .ascii  LINUX_COMPILE_DOMAIN
 		.ascii	") "
 		.ascii	UTS_VERSION
 		.byte	0
diff --fast -Ndpru linux-2.6.17-rc5~/arch/x86_64/boot/setup.S linux-2.6.17-rc5+/arch/x86_64/boot/setup.S
--- linux-2.6.17-rc5~/arch/x86_64/boot/setup.S	2006-05-25 03:50:17.000000000 +0200
+++ linux-2.6.17-rc5+/arch/x86_64/boot/setup.S	2006-05-25 18:35:04.661512000 +0200
@@ -748,6 +748,8 @@ kernel_version:	.ascii	UTS_RELEASE
 		.ascii	LINUX_COMPILE_BY
 		.ascii	"@"
 		.ascii	LINUX_COMPILE_HOST
+                .ascii  "."
+                .ascii  LINUX_COMPILE_DOMAIN
 		.ascii	") "
 		.ascii	UTS_VERSION
 		.byte	0
diff --fast -Ndpru linux-2.6.17-rc5~/init/version.c linux-2.6.17-rc5+/init/version.c
--- linux-2.6.17-rc5~/init/version.c	2006-05-25 03:50:17.000000000 +0200
+++ linux-2.6.17-rc5+/init/version.c	2006-05-25 18:35:26.321512000 +0200
@@ -30,4 +30,5 @@ EXPORT_SYMBOL(system_utsname);
 
 const char linux_banner[] =
 	"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
-	LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
+	LINUX_COMPILE_HOST "." LINUX_COMPILE_DOMAIN ") ("
+	LINUX_COMPILER ") " UTS_VERSION "\n";
#<<eof>>


Jan Engelhardt
-- 
| Software Engineer and Linux/Unix Network Administrator
| Alphagate Systems, http://alphagate.hopto.org/
| jengelh's site, http://jengelh.hopto.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux