psplash : update to latest SVN
authorEric BENARD <eric@eukrea.com>
Sat, 24 Apr 2010 00:12:06 +0000 (00:12 +0000)
committerKhem Raj <raj.khem@gmail.com>
Sun, 16 May 2010 08:41:50 +0000 (01:41 -0700)
- update to latest SVN
- update file names : psplash-hand-img.h -> psplash-poky-img.h
- fix comments
- fix psplash-18bpp.patch (missing break in the switch)

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 files changed:
recipes/psplash/files/angstrom/psplash-poky-img.h [moved from recipes/psplash/files/angstrom/psplash-hand-img.h with 100% similarity]
recipes/psplash/files/boc01/psplash-poky-img.h [moved from recipes/psplash/files/boc01/psplash-hand-img.h with 100% similarity]
recipes/psplash/files/kaeilos/psplash-poky-img.h [moved from recipes/psplash/files/kaeilos/psplash-hand-img.h with 100% similarity]
recipes/psplash/files/logo-math.patch
recipes/psplash/files/openmoko/psplash-poky-img.h [moved from recipes/psplash/files/openmoko/psplash-hand-img.h with 100% similarity]
recipes/psplash/files/psplash-18bpp.patch
recipes/psplash/files/psplash-poky-img.h [moved from recipes/psplash/files/psplash-hand-img.h with 100% similarity]
recipes/psplash/psplash-angstrom_svn.bb
recipes/psplash/psplash-omap3pandora_svn.bb
recipes/psplash/psplash-openmoko_svn.bb
recipes/psplash/psplash.inc
recipes/psplash/psplash_svn.bb

index 21467af..2ebfd7c 100644 (file)
@@ -1,15 +1,23 @@
 upstream: http://bugzilla.openedhand.com/show_bug.cgi?id=801
 comment:
 Do better math when showing logo vs progressbar.
+---
+ psplash.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
 
---- psplash/psplash.c.org      2007-09-22 20:33:36.000000000 +0300
-+++ psplash/psplash.c  2007-12-01 21:27:08.000000000 +0200
-@@ -258,7 +258,7 @@
+diff --git a/psplash.c b/psplash.c
+index 54a65cf..7a52e05 100644
+--- a/psplash.c
++++ b/psplash.c
+@@ -269,7 +269,7 @@ main (int argc, char** argv)
    /* Draw the OH logo  */
    psplash_fb_draw_image (fb, 
-                        (fb->width  - HAND_IMG_WIDTH)/2, 
--                       (fb->height - HAND_IMG_HEIGHT)/2, 
-+                       ((fb->height * 5) / 6 - HAND_IMG_HEIGHT)/2, 
-                        HAND_IMG_WIDTH,
-                        HAND_IMG_HEIGHT,
-                        HAND_IMG_BYTES_PER_PIXEL,
+                        (fb->width  - POKY_IMG_WIDTH)/2, 
+-                       (fb->height - POKY_IMG_HEIGHT)/2, 
++                       ((fb->height * 5) / 6 - POKY_IMG_HEIGHT)/2, 
+                        POKY_IMG_WIDTH,
+                        POKY_IMG_HEIGHT,
+                        POKY_IMG_BYTES_PER_PIXEL,
+-- 
+1.6.3.3
+
index 5e582a4..36ab43b 100644 (file)
@@ -1,9 +1,15 @@
 upstream: http://bugzilla.o-hand.com/show_bug.cgi?id=1764
 
-diff -ru psplash/psplash-fb.c /home/muromec/psplash/psplash-fb.c
---- psplash/psplash-fb.c       2007-08-29 21:27:49.000000000 +0300
-+++ /home/muromec/psplash/psplash-fb.c 2009-08-16 11:59:57.000000000 +0300
-@@ -72,6 +72,7 @@
+---
+ psplash-fb.c |    8 +++++++-
+ psplash-fb.h |    1 +
+ 2 files changed, 8 insertions(+), 1 deletions(-)
+
+diff --git a/psplash-fb.c b/psplash-fb.c
+index 71740cd..860c0c0 100644
+--- a/psplash-fb.c
++++ b/psplash-fb.c
+@@ -160,6 +160,7 @@ psplash_fb_new (int angle)
    fb->real_width  = fb->width  = fb_var.xres;
    fb->real_height = fb->height = fb_var.yres;
    fb->bpp    = fb_var.bits_per_pixel;
@@ -11,34 +17,39 @@ diff -ru psplash/psplash-fb.c /home/muromec/psplash/psplash-fb.c
    fb->stride = fb_fix.line_length;
    fb->type   = fb_fix.type;
    fb->visual = fb_fix.visual;
-@@ -176,7 +177,7 @@
-     }
-
-   /* FIXME: handle no RGB orderings */
--  switch (fb->bpp)
-+  switch (fb->depth)
-     {
-     case 24:
-     case 32:
-@@ -184,6 +185,10 @@
-       *(fb->data + off + 1) = green;
-       *(fb->data + off + 2) = blue;
-       break;
-+    case 18:
-+      *(fb->data + off)     = (red >> 2) | ((green & 0x0C) << 4);
-+      *(fb->data + off + 1) = ((green & 0xF0) >> 4) | ((blue & 0x3C) << 2);
-+      *(fb->data + off + 2) = (blue & 0xC0) >> 6;
-     case 16:
-       *(volatile uint16 *) (fb->data + off)
-       = ((red >> 3) << 11) | ((green >> 2) << 5) | (blue >> 3);
-diff -ru psplash/psplash-fb.h /home/muromec/psplash/psplash-fb.h
---- psplash/psplash-fb.h       2007-08-29 21:27:49.000000000 +0300
-+++ /home/muromec/psplash/psplash-fb.h 2009-08-16 11:58:39.000000000 +0300
-@@ -26,6 +26,7 @@
-   int            visual;
+@@ -308,7 +309,7 @@ psplash_fb_plot_pixel (PSplashFB    *fb,
+         break;
+       }
+   } else if (fb->rgbmode == BGR565 || fb->rgbmode == BGR888) {
+-    switch (fb->bpp)
++    switch (fb->depth)
+       {
+       case 24:
+       case 32:
+@@ -316,6 +317,11 @@ psplash_fb_plot_pixel (PSplashFB    *fb,
+         *(fb->data + off + 1) = green;
+         *(fb->data + off + 2) = blue;
+         break;
++      case 18:
++        *(fb->data + off)     = (red >> 2) | ((green & 0x0C) << 4);
++        *(fb->data + off + 1) = ((green & 0xF0) >> 4) | ((blue & 0x3C) << 2);
++        *(fb->data + off + 2) = (blue & 0xC0) >> 6;
++        break;
+       case 16:
+         *(volatile uint16_t *) (fb->data + off)
+         = ((blue >> 3) << 11) | ((green >> 2) << 5) | (red >> 3);
+diff --git a/psplash-fb.h b/psplash-fb.h
+index ef5b39e..160cdeb 100644
+--- a/psplash-fb.h
++++ b/psplash-fb.h
+@@ -34,6 +34,7 @@ typedef struct PSplashFB
+   int            visual;              
    int            width, height;
    int            bpp;
 +  int            depth;
    int            stride;
-   char                *data;
-   char                *base;
+   char                *data;
+   char                *base;
+-- 
+1.6.3.3
+
index fc5e4c2..c610d87 100644 (file)
@@ -3,16 +3,16 @@ require psplash-ua.inc
 
 ALTERNATIVE_PRIORITY = "20"
 
-# You can create your own pslash-hand-img.h by doing
-# ./make-image-header.sh <file>.png HAND
-# and rename the resulting .h to pslash-hand-img.h (for the logo)
+# You can create your own pslash-poky-img.h by doing
+# ./make-image-header.sh <file>.png POKY
+# and rename the resulting .h to pslash-poky-img.h (for the logo)
 # respectively psplash-bar-img.h (BAR) for the bar.
 # You might also want to patch the colors (see patch)
 
 SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \
           file://psplash-18bpp.patch;patch=1 \
           file://logo-math.patch;patch=1 \
-          file://psplash-hand-img.h \
+          file://psplash-poky-img.h \
           file://psplash-bar-img.h \
           file://psplash-default \
           file://splashfuncs \
index bc9e9f6..2e531ee 100644 (file)
@@ -4,15 +4,15 @@ require psplash-ua.inc
 ALTERNATIVE_PRIORITY = "30"
 ALTERNATIVE_PRIORITY_omap3pandora = "5"
 
-# You can create your own pslash-hand-img.h by doing
-# ./make-image-header.sh <file>.png HAND
-# and rename the resulting .h to pslash-hand-img.h (for the logo)
+# You can create your own pslash-poky-img.h by doing
+# ./make-image-header.sh <file>.png POKY
+# and rename the resulting .h to pslash-poky-img.h (for the logo)
 # respectively psplash-bar-img.h (BAR) for the bar.
 # You might also want to patch the colors (see patch)
 
 SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \
           file://logo-math.patch;patch=1 \
-          file://psplash-hand-img.h \
+          file://psplash-poky-img.h \
           file://psplash-bar-img.h \
           file://psplash-default \
           file://splashfuncs \
index 1114645..bd04a02 100644 (file)
@@ -3,15 +3,15 @@ require psplash-ua.inc
 
 ALTERNATIVE_PRIORITY = "30"
 
-# You can create your own pslash-hand-img.h by doing
-# ./make-image-header.sh <file>.png HAND
-# and rename the resulting .h to pslash-hand-img.h (for the logo)
+# You can create your own pslash-poky-img.h by doing
+# ./make-image-header.sh <file>.png POKY
+# and rename the resulting .h to pslash-poky-img.h (for the logo)
 # respectively psplash-bar-img.h (BAR) for the bar.
 # You might also want to patch the colors (see patch)
 
 SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \
           file://logo-math.patch;patch=1 \
-          file://psplash-hand-img.h \
+          file://psplash-poky-img.h \
           file://psplash-bar-img.h \
           file://psplash-default \
           file://psplash-init"
index 7319b96..2c6555a 100644 (file)
@@ -7,20 +7,20 @@ PROVIDES = "virtual/psplash"
 RPROVIDES_${PN} = "virtual-psplash"
 RCONFLICTS_${PN} = "exquisite"
 
-SRCREV = "249"
+SRCREV = "422"
 PV = "0.0+svnr${SRCPV}"
-PR = "r23"
+PR = "r25"
 
-# You can create your own pslash-hand-img.h by doing
-# ./make-image-header.sh <file>.png HAND
-# and rename the resulting .h to pslash-hand-img.h (for the logo)
+# You can create your own pslash-poky-img.h by doing
+# ./make-image-header.sh <file>.png POKY
+# and rename the resulting .h to pslash-poky-img.h (for the logo)
 # respectively psplash-bar-img.h (BAR) for the bar.
 # You might also want to patch the colors (see patch)
 
 inherit autotools pkgconfig update-rc.d
 
 do_configure_append() {
-       install -m 0644 ${WORKDIR}/psplash-hand-img.h ${S}/
+       install -m 0644 ${WORKDIR}/psplash-poky-img.h ${S}/
        install -m 0644 ${WORKDIR}/psplash-bar-img.h ${S}/
 
        if [ -e "${WORKDIR}/psplash.h" ]; then
index 584822e..c214e53 100644 (file)
@@ -4,7 +4,7 @@ require psplash-ua.inc
 ALTERNATIVE_PRIORITY = "10"
 
 SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \
-          file://psplash-hand-img.h \
+          file://psplash-poky-img.h \
           file://psplash-bar-img.h \
           file://psplash-default \
           file://splashfuncs \