svn commit: trunk/buildroot/package/fbv
Author: jacmet
Date: 2008-04-24 02:03:25 -0700 (Thu, 24 Apr 2008) New Revision: 21824
Log:
fbv: use .patch.$ARCH naming convention
Added:
trunk/buildroot/package/fbv/fbv-1.0b-arch.patch.avr32 trunk/buildroot/package/fbv/fbv-1.0b-cross.patch trunk/buildroot/package/fbv/fbv-1.0b-include.patch
Removed:
trunk/buildroot/package/fbv/fbv-1.0b-avr32.patch
Modified:
trunk/buildroot/package/fbv/fbv.mk
Changeset:
Added: trunk/buildroot/package/fbv/fbv-1.0b-arch.patch.avr32
===================================================================
buildroot/package/fbv/fbv-1.0b-arch.patch.avr32 +48 -0
@@ -0,0 +1,48 @@ +diff -ur fbv-1.0b/fb_display.c fbv-1.0b-avr32/fb_display.c +--- fbv-1.0b/fb_display.c 2004-09-07 14:09:43.000000000 +0200 ++++ fbv-1.0b-avr32/fb_display.c 2006-05-04 13:30:25.000000000 +0200 +@@ -276,9 +276,6 @@ + for(i = 0; i < yc; i++, fbptr += scr_xs * cpp, imptr += pic_xs * cpp) + memcpy(fbptr, imptr, xc * cpp); + +- if(cpp == 1) +- set8map(fh, &map_back); +- + munmap(fb, scr_xs * scr_ys * cpp); + } + +@@ -293,17 +290,17 @@ + inline static unsigned short make15color(unsigned char r, unsigned char g, unsigned char b) + { + return ( +- (((r >> 3) & 31) << 10) | ++ (((r >> 3) & 31)) | + (((g >> 3) & 31) << 5) | +- ((b >> 3) & 31) ); ++ ((b >> 3) & 31) << 10); + } + + inline static unsigned short make16color(unsigned char r, unsigned char g, unsigned char b) + { + return ( +- (((r >> 3) & 31) << 11) | +- (((g >> 2) & 63) << 5) | +- ((b >> 3) & 31) ); ++ (((r >> 3) & 31)) | ++ (((g >> 3) & 31) << 5) | ++ ((b >> 3) & 31) << 10); + } + + void* convertRGB2FB(int fh, unsigned char *rgbbuff, unsigned long count, int bpp, int *cpp) +@@ -342,9 +339,9 @@ + *cpp = 4; + i_fbbuff = (unsigned int *) malloc(count * sizeof(unsigned int)); + for(i = 0; i < count ; i++) +- i_fbbuff[i] = ((rgbbuff[i*3] << 16) & 0xFF0000) | ++ i_fbbuff[i] = ((rgbbuff[i*3+2] << 16) & 0xFF0000) | + ((rgbbuff[i*3+1] << 8) & 0xFF00) | +- (rgbbuff[i*3+2] & 0xFF); ++ (rgbbuff[i*3] & 0xFF); + fbbuff = (void *) i_fbbuff; + break; + default:
Deleted: trunk/buildroot/package/fbv/fbv-1.0b-avr32.patch
===================================================================
buildroot/package/fbv/fbv-1.0b-avr32.patch +0 -144
144 lines not on this page · raw message
Added: trunk/buildroot/package/fbv/fbv-1.0b-cross.patch
===================================================================
buildroot/package/fbv/fbv-1.0b-cross.patch +44 -0
44 lines not on this page · raw message
Added: trunk/buildroot/package/fbv/fbv-1.0b-include.patch
===================================================================
buildroot/package/fbv/fbv-1.0b-include.patch +20 -0
@@ -0,0 +1,20 @@ +diff -urpN fbv-1.0b.orig/fb_display.c fbv-1.0b/fb_display.c +--- fbv-1.0b.orig/fb_display.c 2004-09-07 14:09:43.000000000 +0200 ++++ fbv-1.0b/fb_display.c 2008-04-24 10:48:29.000000000 +0200 +@@ -18,8 +18,6 @@ + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +-#include <linux/fb.h> +- + #include <stdio.h> + #include <stdlib.h> + #include <sys/types.h> +@@ -31,6 +29,7 @@ + #include <asm/types.h> + #include <string.h> + #include <errno.h> ++#include <linux/fb.h> + #include "config.h" + /* Public Use Functions: + *
Modified: trunk/buildroot/package/fbv/fbv.mk
===================================================================
buildroot/package/fbv/fbv.mk +2 -2
@@ -18,7 +18,8 @@ $(FBV_DIR)/.unpacked: $(DL_DIR)/$(FBV_SOURCE) $(FBV_CAT) $(DL_DIR)/$(FBV_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(FBV_DIR) package/fbv/ fbv-$(FBV_VERSION)\*.patch\* + toolchain/patch-kernel.sh $(FBV_DIR) package/fbv/ \ + fbv-$(FBV_VERSION)\*.patch fbv-$(FBV_VERSION)\*.patch.$(ARCH) touch $@ $(FBV_DIR)/.configured: $(FBV_DIR)/.unpacked
@@ -27,7 +28,6 @@ $(TARGET_CONFIGURE_ARGS) \ ./configure \ --prefix=/usr \ - --cc=$(TARGET_CC) \ --libs="-lz -lm" \ ) touch $@