All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] tslib: Use custom tslib.sh
@ 2014-08-13 19:46 Franklin S. Cooper Jr
  2014-08-13 19:46 ` [PATCH 2/6] qtbase: Add global environment variable script Franklin S. Cooper Jr
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Franklin S. Cooper Jr @ 2014-08-13 19:46 UTC (permalink / raw)
  To: meta-arago; +Cc: Franklin S. Cooper Jr

From: "Franklin S. Cooper Jr" <fcooper@ti.com>

* Tslib.sh is copied to /etc/profile.d/ to set default environment variables
  specific to touchscreen.
* However, in Arago additional env variable logic for touchscreen is required
  and is currently located within Matrix's init script.
* Pull the additional logic from Matrix's init script and move it into this file
  so tslib.sh will set the correct environment variable globally.

Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
---
 .../recipes-graphics/tslib/files/tslib.sh          |   17 +++++++++++++++++
 .../tslib/tslib_1.1.bbappend}                      |    2 +-
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 meta-arago-distro/recipes-graphics/tslib/files/tslib.sh
 copy meta-arago-distro/{recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend => recipes-graphics/tslib/tslib_1.1.bbappend} (56%)

diff --git a/meta-arago-distro/recipes-graphics/tslib/files/tslib.sh b/meta-arago-distro/recipes-graphics/tslib/files/tslib.sh
new file mode 100644
index 0000000..f22ec9c
--- /dev/null
+++ b/meta-arago-distro/recipes-graphics/tslib/files/tslib.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+### Touchscreen Environment Variables ###
+
+if [ ! -e /dev/input/touchscreen0 ]; then
+    exit
+fi
+
+export TSLIB_TSDEVICE=/dev/input/touchscreen0
+
+mount | grep /run/media/mmcblk0p1 | grep vfat > /dev/null 2>&1
+if [ "$?" = "0" ]
+then
+    export TSLIB_CALIBFILE=/run/media/mmcblk0p1/pointercal
+else
+    export TSLIB_CALIBFILE=/etc/pointercal
+fi
diff --git a/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend b/meta-arago-distro/recipes-graphics/tslib/tslib_1.1.bbappend
similarity index 56%
copy from meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend
copy to meta-arago-distro/recipes-graphics/tslib/tslib_1.1.bbappend
index c0ab069..875218d 100644
--- a/meta-arago-distro/recipes-core/init-ifupdown/init-ifupdown_1.0.bbappend
+++ b/meta-arago-distro/recipes-graphics/tslib/tslib_1.1.bbappend
@@ -1,4 +1,4 @@
 # look for files in this layer first
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
 PR_append = "-arago0"
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-08-13 20:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13 19:46 [PATCH 1/6] tslib: Use custom tslib.sh Franklin S. Cooper Jr
2014-08-13 19:46 ` [PATCH 2/6] qtbase: Add global environment variable script Franklin S. Cooper Jr
2014-08-13 19:46 ` [PATCH 3/6] weston: " Franklin S. Cooper Jr
2014-08-13 19:46 ` [PATCH 4/6] matrix-gui: Remove environment variables from init script Franklin S. Cooper Jr
2014-08-13 19:55   ` Denys Dmytriyenko
2014-08-13 20:10     ` Cooper Jr., Franklin
2014-08-13 19:46 ` [PATCH 5/6] arago-qt4: Add global environment variable script Franklin S. Cooper Jr
2014-08-13 19:46 ` [PATCH 6/6] ts-calibrate-init: Simplify calibrate logic Franklin S. Cooper Jr

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.