]> code.ossystems Code Review - meta-freescale.git/commitdiff
x11-common: xserver mouse option to use tslib
authorAdrian Alonso <b38018@freescale.com>
Wed, 24 Aug 2011 22:24:13 +0000 (17:24 -0500)
committerAdrian Alonso <b38018@freescale.com>
Wed, 24 Aug 2011 22:24:13 +0000 (17:24 -0500)
* Sets xserver mouse option to use tslib on Freescale
  iMx targets, this is only used if Kdrive (Tiny X) Xserver
  is used.
* Current xserver used is xserver-xf86-lite.

Signed-off-by: Adrian Alonso <b38018@freescale.com>
meta-fsl-arm/recipes-graphics/x11-common/x11-common/Xserver-imx53-platform-support.patch [new file with mode: 0644]
meta-fsl-arm/recipes-graphics/x11-common/x11-common_0.1.bbappend [new file with mode: 0644]

diff --git a/meta-fsl-arm/recipes-graphics/x11-common/x11-common/Xserver-imx53-platform-support.patch b/meta-fsl-arm/recipes-graphics/x11-common/x11-common/Xserver-imx53-platform-support.patch
new file mode 100644 (file)
index 0000000..17348f3
--- /dev/null
@@ -0,0 +1,13 @@
+Index: x11-common/etc/X11/Xserver
+===================================================================
+--- x11-common.orig/etc/X11/Xserver
++++ x11-common/etc/X11/Xserver
+@@ -56,6 +56,8 @@ if [ "$XSERVER" != "/usr/bin/Xorg" ]; then
+                         ARGS="$ARGS -mouse tslib" ;;
+                 "Nokia 770")
+                         ARGS="$ARGS -mouse tslib" ;;
++                "Freescale"*)
++                        ARGS="$ARGS -mouse tslib,2,device=/dev/input/touchscreen0" ;;
+                 *)
+                         ;;
+         esac
diff --git a/meta-fsl-arm/recipes-graphics/x11-common/x11-common_0.1.bbappend b/meta-fsl-arm/recipes-graphics/x11-common/x11-common_0.1.bbappend
new file mode 100644 (file)
index 0000000..b473eb8
--- /dev/null
@@ -0,0 +1,5 @@
+# Append path to include custom Xserver arguments
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
+
+SRC_URI_append += "file://Xserver-imx53-platform-support.patch"