List of patches & linux version right of logo

Pavel Machek (pavel@bug.ucw.cz)
Wed, 26 Aug 1998 14:34:17 +0200


Hi!

This patch does two interesting things: first, it adds list of patches
to kernel. I think that it is _very_ important: we are entering 2.2
phase and that means that there are going to be a _lots_ of patches
around.

Second change adds linux version and list of patches to the right of
linux logo at fbcon screen. It is there mostly to fill free space (and
also because version is hard to read from scrolling screen). Without
this patch, there's huge blank area on the top of screen, and it looks
ugly IMO.

Pavel

--- clean//Makefile Wed Aug 26 13:09:46 1998
+++ linux/Makefile Wed Aug 26 12:55:53 1998
@@ -265,6 +265,7 @@
@echo \#define UTS_RELEASE \"$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)\" > .ver
@echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
@echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' >>.ver
+ @echo \#define UTS_PATCHES \" `ls $(TOPDIR)/init/patches | grep -v orig` \" >> .ver
@mv -f .ver $@

init/version.o: init/version.c include/linux/compile.h
--- clean//init/version.c Tue Jan 6 12:17:29 1998
+++ linux/init/version.c Wed Aug 26 13:10:16 1998
@@ -24,3 +24,9 @@
const char *linux_banner =
"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
+
+const char *linux_banner_short =
+ "Linux version " UTS_RELEASE " " UTS_VERSION;
+
+const char *linux_banner_patches =
+ UTS_PATCHES;
--- clean//drivers/video/fbcon.c Wed Jul 29 12:51:06 1998
+++ linux/drivers/video/fbcon.c Wed Aug 26 13:10:45 1998
@@ -195,9 +200,9 @@
static void fbcon_bmove_rec(struct display *p, int sy, int sx, int dy, int dx,
int height, int width, u_int y_break);

-static int fbcon_show_logo(void);
+static int fbcon_show_logo(struct vc_data *conp);

#if FLASHING_CURSOR

#ifdef CONFIG_MAC
/*
@@ -518,7 +521,7 @@

if (logo) {
logo_shown = fg_console;
- fbcon_show_logo(); /* This is protected above by initmem_freed */
+ fbcon_show_logo(conp); /* This is protected above by initmem_freed */
conp->vc_top = logo_lines;
}
}
@@ -1516,7 +1516,7 @@
return 0;
}

-__initfunc(static int fbcon_show_logo( void ))
+static int __init fbcon_show_logo(struct vc_data *conp)
{
struct display *p = &fb_display[fg_console]; /* draw to vt in foreground */
int depth = p->var.bits_per_pixel;
@@ -1765,6 +1765,23 @@

/* Modes not yet supported: packed pixels with depth != 8 (does such a
* thing exist in reality?) */
+
+ {
+ char *msg;
+ int i;
+
+#define DISPLAY( x, y, text ) \
+ msg = text; \
+ for (i=0; i<strlen(msg); i++) \
+ fbcon_putc(conp, 0x0700 | msg[i], y, x+i);
+
+extern const char *linux_banner_short, *linux_banner_patches;
+
+ DISPLAY( 12, 1, linux_banner_short );
+ DISPLAY( 14, 3, "Patches: " );
+ DISPLAY( 23, 3, linux_banner_patches );
+#undef DISPLAY
+ }

return done ? (LOGO_H + p->fontheight - 1) / p->fontheight : 0 ;
}

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html