From bea63a83fa1a480bdcecbcc00ef036f96d132500 Mon Sep 17 00:00:00 2001 From: Adrian Alonso Date: Wed, 24 Aug 2011 17:24:13 -0500 Subject: [PATCH] x11-common: xserver mouse option to use tslib * 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 --- .../x11-common/Xserver-imx53-platform-support.patch | 13 +++++++++++++ .../x11-common/x11-common_0.1.bbappend | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 meta-fsl-arm/recipes-graphics/x11-common/x11-common/Xserver-imx53-platform-support.patch create mode 100644 meta-fsl-arm/recipes-graphics/x11-common/x11-common_0.1.bbappend 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 index 00000000..17348f3f --- /dev/null +++ b/meta-fsl-arm/recipes-graphics/x11-common/x11-common/Xserver-imx53-platform-support.patch @@ -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 index 00000000..b473eb84 --- /dev/null +++ b/meta-fsl-arm/recipes-graphics/x11-common/x11-common_0.1.bbappend @@ -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" -- 2.40.1