xserver-common: patch to add a section for nokia900 to xserver-common
authorKlaus Kurzmann <mok@fluxnetz.de>
Tue, 14 Sep 2010 15:55:23 +0000 (17:55 +0200)
committerKlaus Kurzmann <mok@fluxnetz.de>
Tue, 14 Sep 2010 15:55:42 +0000 (17:55 +0200)
Signed-off-by: Klaus Kurzmann <mok@fluxnetz.de>
recipes/xserver-common/files/Xserver.n900.patch [new file with mode: 0644]
recipes/xserver-common/xserver-common_1.33.bb
recipes/xserver-common/xserver-common_1.34.bb

diff --git a/recipes/xserver-common/files/Xserver.n900.patch b/recipes/xserver-common/files/Xserver.n900.patch
new file mode 100644 (file)
index 0000000..4d36f5f
--- /dev/null
@@ -0,0 +1,17 @@
+diff -uri xserver-common-1.33.orig/X11/xserver-common xserver-common-1.33/X11/xserver-common
+--- xserver-common-1.33.orig/X11/xserver-common        2010-09-14 17:10:35.955430177 +0200
++++ xserver-common-1.33/X11/xserver-common     2010-09-14 17:17:12.484423440 +0200
+@@ -132,6 +132,13 @@
+         "nokia_n800" | "nokia_rx-44" | "nokia_n770")
+             ARGS="$ARGS -screen ${SCREEN_SIZE}"
+             DPI="225" ;;
++        "nokia_rx-51_board" )                                     
++            DPI="267"                                    
++            if [ "$XSERVER" != "Xorg" ] ; then                    
++                ARGS="$ARGS -screen ${SCREEN_SIZE}"               
++            else                                                  
++                ARGS="$ARGS -dpi ${DPI} -nocursor"       
++            fi ;;                                                    
+         "gta01" )
+             DPI="280"
+             if [ "$XSERVER" != "Xorg" ] ; then
index 9ebaa31..ff5711f 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Common X11 scripts and support files"
 LICENSE = "GPL"
 SECTION = "x11"
 RDEPENDS_${PN} = "xmodmap xrandr xdpyinfo"
-PR = "r7"
+PR = "r8"
 
 PACKAGE_ARCH = "all"
 DEFAULT_PREFERENCE = "-1"
@@ -30,7 +30,8 @@ SRC_URI_append_shr = " file://89xTs_Calibrate.xinput_calibrator.patch \
                        file://90xXWindowManager.patch \
                        file://Xserver.add.nocursor.for.gta.patch \
                        file://Xserver.add.xserver-system.patch \
-                       file://Xserver.add.dpi.for.gta.patch"
+                       file://Xserver.add.dpi.for.gta.patch \
+                      file://Xserver.n900.patch"
 
 do_install_append() {
        install -m 0755 "${WORKDIR}/setDPI.sh" "${D}/etc/X11/Xinit.d/50setdpi"
index 7f2308c..0254965 100644 (file)
@@ -28,7 +28,8 @@ SRC_URI_append_shr = " file://89xTs_Calibrate.xinput_calibrator.patch \
                        file://90xXWindowManager.patch \
                        file://Xserver.add.nocursor.for.gta.patch \
                        file://Xserver.add.xserver-system.patch \
-                       file://Xserver.add.dpi.for.gta.patch"
+                       file://Xserver.add.dpi.for.gta.patch \
+                      file://Xserver.n900.patch"
 
 do_install_append() {
        install -m 0755 "${WORKDIR}/setDPI.sh" "${D}/etc/X11/Xinit.d/50setdpi"