Files
poky/meta/packages/uboot/u-boot-mkimage-openmoko-native/splashimage-command.patch
Marcin Juszkiewicz 70abc059eb u-boot: import OpenMoko uboot from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3014 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-10-29 11:00:19 +00:00

25 lines
709 B
Diff

drivers/cfb_console.c (video_logo): if "splashimage" doesn't contain an
address, use its content as a command
- Werner Almesberger <werner@openmoko.org>
Index: u-boot/drivers/cfb_console.c
===================================================================
--- u-boot.orig/drivers/cfb_console.c
+++ u-boot/drivers/cfb_console.c
@@ -1121,7 +1121,13 @@ static void *video_logo (void)
ulong addr;
if ((s = getenv ("splashimage")) != NULL) {
- addr = simple_strtoul (s, NULL, 16);
+ char *end;
+
+ addr = simple_strtoul (s, &end, 16);
+ if (*end) {
+ run_command(s, 0);
+ return video_fb_address;
+ }
if (video_display_bitmap (addr, 0, 0) == 0) {
return ((void *) (video_fb_address));