meta-arago-distro: psplash: Use PNG for splash logo
PATCH 1/1 meta-arago-distro: psplash: Use PNG for splash logo
This seems to have been broken for some time now, to get this working update the splash logo. The upstream psplash now supports using a PNG image instead of a header file (recipe converts), so use that.
Signed-off-by Andrew Davis <[email protected]>
--- .../0003-Updated-configurability.patch.patch | 92 ---- .../psplash/psplash/psplash-bar-img.h | 31 -- .../psplash/psplash/psplash-poky-img.h | 453 ------------------ .../recipes-core/psplash/psplash/txn-logo.png | Bin 0 -> 8227 bytes .../recipes-core/psplash/psplash_git.bbappend | 10 +- 5 files changed, 2 insertions(+), 584 deletions(-) delete mode 100644 meta-arago-distro/recipes-core/psplash/psplash/0003-Updated-configurability.patch.patch delete mode 100644 meta-arago-distro/recipes-core/psplash/psplash/psplash-bar-img.h delete mode 100644 meta-arago-distro/recipes-core/psplash/psplash/psplash-poky-img.h create mode 100644 meta-arago-distro/recipes-core/psplash/psplash/txn-logo.png
meta-arago-distro/recipes-core/psplash/psplash/0003-Updated-configurability.patch.patch deleted +0 -92
@@ -1,92 +0,0 @@ -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. - -Upstream-Status: Inappropriate [customization for arago] - -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-bar-img.h deleted +0 -31
@@ -1,31 +0,0 @@ -/* 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 deleted +0 -453
453 lines not on this page · raw message
meta-arago-distro/recipes-core/psplash/psplash/txn-logo.png new file binary +0 -0
meta-arago-distro/recipes-core/psplash/psplash_git.bbappend +2 -8
@@ -1,15 +1,9 @@ -# look for files in this layer first FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" -PR:append = ".arago4" +PR:append = ".arago5" -# file://0003-Updated-configurability.patch.patch SRC_URI += "file://psplash-18bpp.patch \ - file://psplash-poky-img.h \ - file://psplash-bar-img.h \ file://0001-psplash-Add-Arago-custom-color.patch\ " -do_configure:prepend() { - install -m 0644 ${WORKDIR}/psplash-bar-img.h ${S}/ -} +SPLASH_IMAGES = "file://txn-logo.png;outsuffix=default"
Signature · 1 line
2.39.2