Skip to contentSkip to conversation

logo: random logo selection option

PATCH In review Miguel Boton 3 participants 3 messages Sep 11, 2009 – Sep 12, 2009 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 logo: random logo selection option

If we select more than one logo in the kernel configuration, only the 'latest' one gets displayed. Because of this the other logos do not ever have a chance to be displayed.

This patch adds a selectable option to display a random logo during the bootup process. This way the kernel will be able to display any available logo, making the bootup process a little different every time ;)

--

 drivers/video/logo/Kconfig |    8 +++
 drivers/video/logo/logo.c  |  113 +++++++++++++++++++++++++------------------
 2 files changed, 74 insertions(+), 47 deletions(-)
drivers/video/logo/Kconfig +9 -0
index 39ac49e..8b79ef5 100644
@@ -15,6 +15,15 @@ config FB_LOGO_EXTRA
 	depends on FB=y
 	default y if SPU_BASE
 
+config LOGO_RANDOM
+	bool "Select random available logo"
+	default n
+	help
+	  This option enables random logo selection from available logos
+	  during the bootup process.
+
+comment "Available logos"
+
 config LOGO_LINUX_MONO
 	bool "Standard black and white Linux logo"
 	default y
drivers/video/logo/logo.c +66 -47

154 lines not on this page · raw message

#1 lore raw
Quoted 6 lines · Miguel Boton

If we select more than one logo in the kernel configuration, only the 'latest' one gets displayed. Because of this the other logos do not ever have a chance to be displayed.

This patch adds a selectable option to display a random logo during the bootup process. This way the kernel will be able to display any available logo, making the bootup process a little different every time ;)

[I foolishly read every LKML message with 'random' in the title..]

Bonus points if you add printing a fortune from a compiled-in fortune database? Let's not do this, please. Our goal is instead to boot so fast that such things aren't visible.

Signature · 1 line
http://selenic.com : development and support for Mercurial and Linux
#2 lore raw
Quoted 4 lines · Matt Mackall
Quoted 3 lines · Miguel Boton

If we select more than one logo in the kernel configuration, only the 'latest' one gets displayed. Because of this the other logos do not ever have a chance to be displayed.

Quoted 8 lines
Quoted 3 lines

This patch adds a selectable option to display a random logo during the bootup process. This way the kernel will be able to display any available logo, making the bootup process a little different every time ;)

[I foolishly read every LKML message with 'random' in the title..]

Bonus points if you add printing a fortune from a compiled-in fortune database? Let's not do this, please. Our goal is instead to boot so fast

Hey, we already have a compiled-in fortune database to choose from (unless CONFIG_PRINTK is disabled)?

Quoted 1 line

that such things aren't visible.

100% agreed.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds