Skip to contentSkip to conversation

psplash_git: Add Arago psplash customizations. Port patches from arago to meta-arago

PATCH New Franklin S Cooper Jr 1 participant 1 message Aug 22, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 psplash_git: Add Arago psplash customizations. Port patches from arago to meta-arago

* Create custom Arago splash screen image and progress bar
* Port patch that added support for 18bpp from arago to meta-arago
* Port configurability patch from arago to meta-arago. This patch moves some hardcoded values from within psplash.c into defines located in pslash.h

---
 .../0003-Updated-configurability.patch.patch       |   90 ++++
 .../psplash/psplash/psplash-18bpp.patch            |   55 +++
 .../recipes-core/psplash/psplash/psplash-bar-img.h |   31 ++
 .../psplash/psplash/psplash-poky-img.h             |  453 ++++++++++++++++++++
 .../recipes-core/psplash/psplash_git.bbappend      |   12 +-
 5 files changed, 640 insertions(+), 1 deletions(-)
 create mode 100644 meta-arago-distro/recipes-core/psplash/psplash/0003-Updated-configurability.patch.patch
 create mode 100644 meta-arago-distro/recipes-core/psplash/psplash/psplash-18bpp.patch
 create mode 100644 meta-arago-distro/recipes-core/psplash/psplash/psplash-bar-img.h
 create mode 100644 meta-arago-distro/recipes-core/psplash/psplash/psplash-poky-img.h
meta-arago-distro/recipes-core/psplash/psplash/0003-Updated-configurability.patch.patch new file +90 -0
new file mode 100644
index 0000000..7c9feec
@@ -0,0 +1,90 @@
+From 91aae19ff80429bc8e7f35cf131f0491ce3e2f63 Mon Sep 17 00:00:00 2001
+From: Franklin S Cooper Jr <[email protected]>
+Date: Fri, 6 Jul 2012 19:04:19 -0500
+Subject: [PATCH 3/3] Updated configurability.patch
+
+* Updating configurability.patch to work with the most recent version
+  (last update 5/10/2012) of psplash.
+
+Signed-off-by: Franklin S Cooper Jr <[email protected]>
+---
+ psplash.c |   16 ++++++++--------
+ psplash.h |    3 +++
+ 2 files changed, 11 insertions(+), 8 deletions(-)
+
+diff --git a/psplash.c b/psplash.c
+index 09cf0d0..9ccfc83 100644
+--- a/psplash.c
++++ b/psplash.c
+@@ -46,14 +46,14 @@ psplash_draw_msg (PSplashFB *fb, const char *msg)
+ 
+   psplash_fb_draw_rect (fb, 
+ 			0, 
+-			fb->height - (fb->height/6) - h, 
+-			fb->width,
++			fb->height - (fb->height/PSPLASH_TEXT_DIVIDER) - h,
++            fb->width,
+ 			h,
+ 			PSPLASH_BACKGROUND_COLOR);
+ 
+   psplash_fb_draw_text (fb,
+ 			(fb->width-w)/2, 
+-			fb->height - (fb->height/6) - h,
++			fb->height - (fb->height/PSPLASH_TEXT_DIVIDER) - h,
+ 			PSPLASH_TEXT_COLOR,
+ 			&radeon_font,
+ 			msg);
+@@ -66,7 +66,7 @@ psplash_draw_progress (PSplashFB *fb, int value)
+ 
+   /* 4 pix border */
+   x      = ((fb->width  - BAR_IMG_WIDTH)/2) + 4 ;
+-  y      = fb->height - (fb->height/6) + 4;
++  y      = fb->height - (fb->height/PSPLASH_PROGRESS_DIVIDER) + 4;
+   width  = BAR_IMG_WIDTH - 8; 
+   height = BAR_IMG_HEIGHT - 8;
+ 
+@@ -270,7 +270,7 @@ main (int argc, char** argv)
+   /* Draw the Poky logo  */
+   psplash_fb_draw_image (fb, 
+ 			 (fb->width  - POKY_IMG_WIDTH)/2, 
+-			 ((fb->height * 5) / 6 - POKY_IMG_HEIGHT)/2,
++			 (fb->height - POKY_IMG_HEIGHT)/2,
+ 			 POKY_IMG_WIDTH,
+ 			 POKY_IMG_HEIGHT,
+ 			 POKY_IMG_BYTES_PER_PIXEL,
+@@ -279,15 +279,15 @@ main (int argc, char** argv)
+   /* Draw progress bar border */
+   psplash_fb_draw_image (fb, 
+ 			 (fb->width  - BAR_IMG_WIDTH)/2, 
+-			 fb->height - (fb->height/6), 
++			 fb->height - (fb->height/PSPLASH_PROGRESS_DIVIDER), 
+ 			 BAR_IMG_WIDTH,
+ 			 BAR_IMG_HEIGHT,
+ 			 BAR_IMG_BYTES_PER_PIXEL,
+ 			 BAR_IMG_RLE_PIXEL_DATA);
+ 
+-  psplash_draw_progress (fb, 0);
++  psplash_draw_progress (fb, 0); /* draw initial progress */
+ 
+-  psplash_draw_msg (fb, MSG);
++  if (strlen(MSG)) psplash_draw_msg (fb, MSG);
+ 
+   psplash_main (fb, pipe_fd, 0);
+ 
+diff --git a/psplash.h b/psplash.h
+index f78c117..ec399ed 100644
+--- a/psplash.h
++++ b/psplash.h
+@@ -55,6 +55,9 @@ typedef int            bool;
+ #define TRUE 1
+ #endif
+ 
++#define PSPLASH_PROGRESS_DIVIDER    3
++#define PSPLASH_TEXT_DIVIDER        3
++
+ #define PSPLASH_FIFO "psplash_fifo"
+ 
+ #define CLAMP(x, low, high) \
+-- 
+1.7.0.4
+
meta-arago-distro/recipes-core/psplash/psplash/psplash-18bpp.patch new file +55 -0

55 lines not on this page · raw message

meta-arago-distro/recipes-core/psplash/psplash/psplash-bar-img.h new file +31 -0
new file mode 100644
index 0000000..30d64a4
@@ -0,0 +1,31 @@
+/* GdkPixbuf RGB C-Source image dump 1-byte-run-length-encoded */
+
+#define BAR_IMG_ROWSTRIDE (690)
+#define BAR_IMG_WIDTH (230)
+#define BAR_IMG_HEIGHT (28)
+#define BAR_IMG_BYTES_PER_PIXEL (3) /* 3:RGB, 4:RGBA */
+#define BAR_IMG_RLE_PIXEL_DATA ((uint8*) \
+  "\377\377\377\377\377\377\377\377\377\377\377\377\321\377\377\377\1\307" \
+  "\307\307\377\210\210\210\340\210\210\210\1\300\300\300\205\377\377\377" \
+  "\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207" \
+  "\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340" \
+  "\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205" \
+  "\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1" \
+  "\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377" \
+  "\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0" \
+  "\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377" \
+  "\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207" \
+  "\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0" \
+  "\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0" \
+  "\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377" \
+  "\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207" \
+  "\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0" \
+  "\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0" \
+  "\1xxx\205\377\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377" \
+  "\377\377\1\207\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207" \
+  "\207\207\377\0\0\0\340\0\0\0\1xxx\205\377\377\377\1\207\207\207\377\0" \
+  "\0\0\340\0\0\0\1xxx\205\377\377\377\1\277\277\277\377www\340www\1\267" \
+  "\267\267\377\377\377\377\377\377\377\377\377\377\377\377\322\377\377" \
+  "\377")
+
+
meta-arago-distro/recipes-core/psplash/psplash/psplash-poky-img.h new file +453 -0

453 lines not on this page · raw message

meta-arago-distro/recipes-core/psplash/psplash_git.bbappend +11 -1
index b452cb1..b279daa 100644
@@ -1,7 +1,7 @@
 # look for files in this layer first
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PR_append = "-arago0"
+PR_append = "-arago1"
 
 # Update which portion of the psplash.h file to use as a checksum. This tweak
 # has already been done in oe-core master
@@ -9,3 +9,13 @@ LIC_FILES_CHKSUM = "file://psplash.h;beginline=1;endline=16;md5=840fb2356b10a85b
 
 # Updating to latest version of psplash. This is the version used in oe-core master
 SRCREV = "de9979aefbc56af59b4d236a4b63dd19dcdcfb53"
+
+SRC_URI += "file://psplash-18bpp.patch                      \
+            file://0003-Updated-configurability.patch.patch \
+            file://psplash-poky-img.h                       \
+            file://psplash-bar-img.h                        \
+"
+
+do_configure_prepend() {
+    install -m 0644 ${WORKDIR}/psplash-bar-img.h ${S}/
+}
Signature · 1 line
1.7.0.4