splashimage-command.patch

来自「Uboot常用的移植patches, 方便定制移植到s3c2440」· PATCH 代码 · 共 25 行

PATCH
25
字号
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/video/cfb_console.c===================================================================--- u-boot.orig/drivers/video/cfb_console.c+++ u-boot/drivers/video/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));

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?