Skip to contentSkip to conversation

replace xtscal with xinput-calibrator

PATCH In review Maxin B. John 4 participants 16 messages Aug 10, 2016 – Aug 28, 2016

lore
Share & tools
lore
#0 lore raw

v2 cover replace xtscal with xinput-calibrator

Remove xtscal in preference of xinput-calibrator

[YOCTO #9365]
[YOCTO #8380]

Changes in v2:
1. Removed bash dependency from xinput-calibrator
2. Moved tslib recipe from oe-core since modern systems tend to use kernel driver or libinput
3. removed pointercal reference from packagegroup-core-x11-base
4. removed tslib references from packagegroup-core-tools-testapps

The following changes since commit dfc016fbf13e62f7767edaf7abadf1d1b72680b2:

maintainers.inc: remove augeas (2016-08-02 14:05:58 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib maxin/xtscal
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=maxin/xtscal

Maxin B. John (10):
xtscal: remove recipe
x11-common: replace xtscal with xinput-calibrator
pointercal-xinput: add a dummy calibration file for qemu packagegroup-core-x11-base.bb: remove pointercal
xinput-calibrator: remove bash dependency
pointercal: remove recipe
tslib: remove recipe packagegroup-core-tools-testapps: remove tslib references distro_alias.inc: remove xtscal, pointercal and tslib references layer.conf: remove pointercal

 meta/conf/distro/include/distro_alias.inc          |   3 -
 meta/conf/layer.conf                               |   1 -
 meta/recipes-bsp/pointercal/pointercal/COPYING     |   2 -
 meta/recipes-bsp/pointercal/pointercal/pointercal  |   0
 .../pointercal/pointercal/qemuarm/pointercal       |   1 -
 .../pointercal/pointercal/qemuarmv6/pointercal     |   1 -
 .../pointercal/pointercal/qemuarmv7/pointercal     |   1 -
 .../pointercal/pointercal/qemumips/pointercal      |   1 -
 .../pointercal/pointercal/qemuppc/pointercal       | Bin 36 -> 0 bytes
 .../pointercal/pointercal/qemux86-64/pointercal    |   1 -
 .../pointercal/pointercal/qemux86/pointercal       |   1 -
 meta/recipes-bsp/pointercal/pointercal_0.0.bb      |  22 -
 .../packagegroup-core-tools-testapps.bb            |   2 -
 .../packagegroups/packagegroup-core-x11-base.bb    |   1 -
 meta/recipes-graphics/tslib/tslib/ts.conf          |  25 -
 meta/recipes-graphics/tslib/tslib/tslib.sh         |   8 -
 meta/recipes-graphics/tslib/tslib_1.1.bb           |  53 --
 meta/recipes-graphics/x11-common/x11-common_0.1.bb |   2 +-
 .../pointercal-xinput/qemuall/pointercal.xinput    |   2 +
 .../add-geometry-input-when-calibrating.patch      |  31 +-
 .../xinput-calibrator/xinput-calibrator_git.bb     |   2 +-
 .../xtscal/xtscal/30xTs_Calibrate.sh               |  13 -
 .../xtscal/xtscal/change-cross.patch               |  18 -
 meta/recipes-graphics/xtscal/xtscal/cleanup.patch  | 621 ---------------------
 .../xtscal/dso_linking_change_build_fix.patch      |  27 -
 meta/recipes-graphics/xtscal/xtscal_0.6.3.bb       |  33 --
 26 files changed, 20 insertions(+), 852 deletions(-)
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/COPYING
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuarm/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuarmv6/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuarmv7/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemumips/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuppc/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemux86-64/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemux86/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal_0.0.bb
 delete mode 100644 meta/recipes-graphics/tslib/tslib/ts.conf
 delete mode 100644 meta/recipes-graphics/tslib/tslib/tslib.sh
 delete mode 100644 meta/recipes-graphics/tslib/tslib_1.1.bb
 create mode 100644 meta/recipes-graphics/xinput-calibrator/pointercal-xinput/qemuall/pointercal.xinput
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/change-cross.patch
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/cleanup.patch
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/dso_linking_change_build_fix.patch
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal_0.6.3.bb
Signature · 1 line
2.4.0
#1 lore raw

PATCH v2 1/10 xtscal: remove recipe

Remove xtscal in preference of xinput-calibrator

[YOCTO #9365]

---
 .../xtscal/xtscal/30xTs_Calibrate.sh               |  13 -
 .../xtscal/xtscal/change-cross.patch               |  18 -
 meta/recipes-graphics/xtscal/xtscal/cleanup.patch  | 621 ---------------------
 .../xtscal/dso_linking_change_build_fix.patch      |  27 -
 meta/recipes-graphics/xtscal/xtscal_0.6.3.bb       |  33 --
 5 files changed, 712 deletions(-)
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/change-cross.patch
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/cleanup.patch
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/dso_linking_change_build_fix.patch
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal_0.6.3.bb
meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh deleted +0 -13
deleted file mode 100644
index fa43617..0000000
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-. /etc/formfactor/config
-
-if [ "$HAVE_TOUCHSCREEN" = "1" ]; then
-	n=1
-	while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] && [ $n -le 5 ]
-	do
-	   /usr/bin/xtscal
-	   sleep 1
-	   n=$(($n+1))
-	done
-fi
meta/recipes-graphics/xtscal/xtscal/change-cross.patch deleted +0 -18
deleted file mode 100644
index 1da7717..0000000
@@ -1,18 +0,0 @@
-Upstream-Status: Pending
-
---- tmp/main.c.orig	2007-01-02 15:39:54.000000000 +0000
-+++ tmp/main.c	2007-01-02 15:39:54.000000000 +0000
-@@ -131,9 +131,10 @@
- {
-   XRenderFillRectangles (dpy, PictOpSrc, pict, &rect_color, rectangles, 2);
- 
--  XFillArc (dpy, crosshair_w, crosshair_gc, (CROSSHAIR_SIZE / 2) - (WIDTH / 2) - 1, 
--	    (CROSSHAIR_SIZE / 2) - (WIDTH / 2) - 1,
--	    WIDTH + 1, WIDTH + 1, 0, 360 * 64);
-+  XFillRectangle (dpy, crosshair_w, crosshair_gc,
-+		  (CROSSHAIR_SIZE / 2) - (WIDTH / 2),
-+		  (CROSSHAIR_SIZE / 2) - (WIDTH / 2),
-+		  WIDTH, WIDTH);
- }
- 
- void
meta/recipes-graphics/xtscal/xtscal/cleanup.patch deleted +0 -621

621 lines not on this page · raw message

meta/recipes-graphics/xtscal/xtscal/dso_linking_change_build_fix.patch deleted +0 -27
deleted file mode 100644
index 3e4533f..0000000
@@ -1,27 +0,0 @@
-after gcc linking has changed, all the libraries must be explicitely specified 
-This patch avoids this linking error:
-
-| ccache i586-poky-linux-gcc -march=i586 --sysroot=/disk0/pokybuild/build1/tmp/sysroots/i586-poky-linux  -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o xtscal main.o calibrate.o -lX11 -lXft -lXext -lXcalibrate^M
-| /disk0/pokybuild/build1/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.5.1/ld: ^?: invalid DSO for symbol `XRenderChangePicture' definition^M
-| /disk0/pokybuild/build1/tmp/sysroots/i586-poky-linux/usr/lib/libXrender.so.1: could not read symbols: Bad value^M
-| collect2: ld returned 1 exit status^M
-| make: *** [xtscal] Error 1
-
-Nitin A Kamble <[email protected]>
-Date: 2011/01/11
-
-Upstream-Status: Pending
-
-Index: xtscal-0.6.3/configure.ac
-===================================================================
---- xtscal-0.6.3.orig/configure.ac
-+++ xtscal-0.6.3/configure.ac
-@@ -9,7 +9,7 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
- # Checks for programs.
- AC_PROG_CC
- 
--PKG_CHECK_MODULES(XTSCAL, x11 xft xext xcalibrate)
-+PKG_CHECK_MODULES(XTSCAL, x11 xft xext xcalibrate xrender)
- 
- AC_CONFIG_FILES([Makefile])
- AC_OUTPUT
meta/recipes-graphics/xtscal/xtscal_0.6.3.bb deleted +0 -33
deleted file mode 100644
index 4bfddf0..0000000
@@ -1,33 +0,0 @@
-SUMMARY = "Touchscreen calibration utility"
-
-DESCRIPTION = "Basic touchscreen calibration utility"
-
-HOMEPAGE = "http://gpe.linuxtogo.org"
-BUGTRACKER = "http://bugs.linuxtogo.org"
-LICENSE = "GPLv2 & GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
-                    file://main.c;endline=10;md5=8721bcb08ae9f24e5fe4c82941873c87"
-
-SECTION = "x11/base"
-
-DEPENDS = "virtual/libx11 libxft libxcalibrate"
-
-PR = "r13"
-
-SRC_URI = "${GPE_MIRROR}/xtscal-${PV}.tar.bz2 \
-           file://change-cross.patch \
-           file://cleanup.patch \
-           file://dso_linking_change_build_fix.patch \
-           file://30xTs_Calibrate.sh"
-
-SRC_URI[md5sum] = "9bcab80b474d5454477d1ca166a68c34"
-SRC_URI[sha256sum] = "27b9dc2203de9b1706ca39fa6ca80ecab8807909ec901c4a345b8e41178800a1"
-
-inherit autotools pkgconfig distro_features_check
-# depends on virtual/libx11
-REQUIRED_DISTRO_FEATURES = "x11"
-
-do_install_append() {
-    install -d ${D}${sysconfdir}/X11/Xsession.d/
-    install -m 0755 ${WORKDIR}/30xTs_Calibrate.sh ${D}${sysconfdir}/X11/Xsession.d/
-}
Signature · 1 line
2.4.0
#2 lore raw

PATCH v2 2/10 x11-common: replace xtscal with xinput-calibrator

In reply to Maxin B. John

Replace xtscal with xinput-calibrator as part of removing xtscal.

[YOCTO #9365]

---
 meta/recipes-graphics/x11-common/x11-common_0.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/x11-common/x11-common_0.1.bb +1 -1
index 6d7c347..2bc0d33 100644
@@ -26,5 +26,5 @@ do_install() {
 	chmod -R 755 ${D}${sysconfdir}
 }
 
-RDEPENDS_${PN} = "dbus-x11 xmodmap xdpyinfo xtscal xinit formfactor"
+RDEPENDS_${PN} = "dbus-x11 xmodmap xdpyinfo xinput-calibrator xinit formfactor"
 
Signature · 1 line
2.4.0
#3 lore raw

PATCH v2 3/10 pointercal-xinput: add a dummy calibration file for qemu

In reply to Maxin B. John

In qemu, the emulated PS/2 mouse reports itself as an "absolute coordinate" device and that makes xinput_calibrator think it could be calibrated.

Add a dummy calibration file as a work around to prevent xinput_calibrator from popping up on every boot in qemu.

[YOCTO #8380]

---
 .../xinput-calibrator/pointercal-xinput/qemuall/pointercal.xinput       | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 meta/recipes-graphics/xinput-calibrator/pointercal-xinput/qemuall/pointercal.xinput
meta/recipes-graphics/xinput-calibrator/pointercal-xinput/qemuall/pointercal.xinput new file +2 -0
new file mode 100644
index 0000000..a816d6d
@@ -0,0 +1,2 @@
+# Dummy pointercal.xinput file to prevent xinput_calibrator
+# from running on qemu startup
Signature · 1 line
2.4.0
#4 lore raw

PATCH v2 4/10 packagegroup-core-x11-base.bb: remove pointercal

In reply to Maxin B. John

Remove pointercal from packagegroup-core-x11-base since we removed xtscal in favour of xinput-calibrator

---
 meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb +0 -1
index db3dfe3..7ea72d5 100644
@@ -10,7 +10,6 @@ RDEPENDS_${PN} = "\
     packagegroup-core-x11-xserver \
     packagegroup-core-x11-utils \
     dbus \
-    pointercal \
     matchbox-terminal \
     matchbox-wm \
     mini-x-session \
Signature · 1 line
2.4.0
#5 lore raw

PATCH v2 5/10 xinput-calibrator: remove bash dependency

In reply to Maxin B. John

Refresh add-geometry-input-when-calibrating.patch to remove bashism from it.

---
 .../add-geometry-input-when-calibrating.patch      | 31 +++++++++++-----------
 .../xinput-calibrator/xinput-calibrator_git.bb     |  2 +-
 2 files changed, 17 insertions(+), 16 deletions(-)
meta/recipes-graphics/xinput-calibrator/xinput-calibrator/add-geometry-input-when-calibrating.patch +16 -15
index 9351331..9dc94ae 100644
@@ -1,33 +1,34 @@
-Upstream-Status: Inappropriate [no longer maintained]
-
-From 93abf28d602da637376b78de8c88b7ab5cf13b4f Mon Sep 17 00:00:00 2001
-From: Jonathan David <[email protected]>
-Date: Mon, 30 Nov 2015 12:12:20 -0600
+From 1cb83759632bb218559c4d0d65ff79f868c03dc5 Mon Sep 17 00:00:00 2001
+From: "Maxin B. John" <[email protected]>
+Date: Tue, 9 Aug 2016 17:03:31 +0300
 Subject: [PATCH] add geometry input when calibrating
 
 Send monitor geometry to xinput_calibrator when running the script
+Update:
+        Remove bashism
+
+Upstream-Status: Inappropriate [no longer maintained]
 
 Signed-off-by: Jonathan David <[email protected]>
+Signed-off-by: Maxin B. John <[email protected]>
 ---
- scripts/xinput_calibrator_pointercal.sh | 5 ++++-
- 1 file changed, 4 insertions(+), 1 deletion(-)
+ scripts/xinput_calibrator_pointercal.sh | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
 
 diff --git a/scripts/xinput_calibrator_pointercal.sh b/scripts/xinput_calibrator_pointercal.sh
-index 0ada7da..6a3aded 100755
+index fccb197..fea7c2f 100755
 --- a/scripts/xinput_calibrator_pointercal.sh
 +++ b/scripts/xinput_calibrator_pointercal.sh
-@@ -37,7 +37,10 @@ done
- 
- [ "$USER" != "root" ] && CALFILE=$USER_CALFILE
+@@ -24,7 +24,8 @@ if [ -e $CALFILE ] ; then
+   fi
+ fi
  
 -CALDATA=`$BINARY --output-type xinput -v | tee $LOGFILE | grep '    xinput set' | sed 's/^    //g; s/$/;/g'`
-+read RESOLUTION <<< $(xrandr | awk -F '[[:space:]+]' '/ connected/ \
-+  { if ($3 != "primary") print $3; if ($3 == "primary") print $4 }')
-+
++RESOLUTION=$(xrandr | awk -F '[[:space:]+]' '/ connected/ { if ($3 != "primary") print $3; if ($3 == "primary") print $4 }')
 +CALDATA=`$BINARY --geometry $RESOLUTION --output-type xinput -v | tee $LOGFILE | grep '    xinput set' | sed 's/^    //g; s/$/;/g'`
  if [ ! -z "$CALDATA" ] ; then
    echo $CALDATA > $CALFILE
    echo "Calibration data stored in $CALFILE (log in $LOGFILE)"
 -- 
-1.9.1
+2.4.0
 
meta/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb +1 -1
index 98ce7ee..57c3a7a 100644
@@ -34,5 +34,5 @@ do_install_append() {
 }
 
 FILES_${PN} += "${sysconfdir}/xdg/autostart"
-RDEPENDS_${PN} = "xinput formfactor xrandr bash"
+RDEPENDS_${PN} = "xinput formfactor xrandr"
 RRECOMMENDS_${PN} = "pointercal-xinput"
Signature · 1 line
2.4.0
#6 lore raw

PATCH v2 6/10 pointercal: remove recipe

In reply to Maxin B. John

Remove pointercal recipe along with xtscal since we replace it with xinput-calibrator

[YOCTO #9365]

---
 meta/recipes-bsp/pointercal/pointercal/COPYING     |   2 --
 meta/recipes-bsp/pointercal/pointercal/pointercal  |   0
 .../pointercal/pointercal/qemuarm/pointercal       |   1 -
 .../pointercal/pointercal/qemuarmv6/pointercal     |   1 -
 .../pointercal/pointercal/qemuarmv7/pointercal     |   1 -
 .../pointercal/pointercal/qemumips/pointercal      |   1 -
 .../pointercal/pointercal/qemuppc/pointercal       | Bin 36 -> 0 bytes
 .../pointercal/pointercal/qemux86-64/pointercal    |   1 -
 .../pointercal/pointercal/qemux86/pointercal       |   1 -
 meta/recipes-bsp/pointercal/pointercal_0.0.bb      |  22 ---------------------
 10 files changed, 30 deletions(-)
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/COPYING
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuarm/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuarmv6/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuarmv7/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemumips/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuppc/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemux86-64/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemux86/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal_0.0.bb
meta/recipes-bsp/pointercal/pointercal/COPYING deleted +0 -2
deleted file mode 100644
index 63f5293..0000000
@@ -1,2 +0,0 @@
-This is a blank COPYING file, and should be filled in by original author in future.
-
meta/recipes-bsp/pointercal/pointercal/pointercal deleted +0 -0
deleted file mode 100644
index e69de29..0000000
meta/recipes-bsp/pointercal/pointercal/qemuarm/pointercal deleted +0 -1
deleted file mode 100644
index abd84ca..0000000
@@ -1 +0,0 @@
-8313 4 -8526 7 8334 -82604 65536
meta/recipes-bsp/pointercal/pointercal/qemuarmv6/pointercal deleted +0 -1
deleted file mode 100644
index abd84ca..0000000
@@ -1 +0,0 @@
-8313 4 -8526 7 8334 -82604 65536
meta/recipes-bsp/pointercal/pointercal/qemuarmv7/pointercal deleted +0 -1
deleted file mode 100644
index abd84ca..0000000
@@ -1 +0,0 @@
-8313 4 -8526 7 8334 -82604 65536
meta/recipes-bsp/pointercal/pointercal/qemumips/pointercal deleted +0 -1
deleted file mode 100644
index abd84ca..0000000
@@ -1 +0,0 @@
-8313 4 -8526 7 8334 -82604 65536
meta/recipes-bsp/pointercal/pointercal/qemuppc/pointercal deleted binary +0 -0
deleted file mode 100644
index c2d6e37bf0c0d956ba17ba9955613c4cee5a147a..0000000000000000000000000000000000000000
GIT binary patch
meta/recipes-bsp/pointercal/pointercal/qemux86-64/pointercal deleted +0 -1
deleted file mode 100644
index 640053d..0000000
@@ -1 +0,0 @@
-1280 0 1002 0 960 328 65536
meta/recipes-bsp/pointercal/pointercal/qemux86/pointercal deleted +0 -1
deleted file mode 100644
index 640053d..0000000
@@ -1 +0,0 @@
-1280 0 1002 0 960 328 65536
meta/recipes-bsp/pointercal/pointercal_0.0.bb deleted +0 -22
deleted file mode 100644
index df735a5..0000000
@@ -1,22 +0,0 @@
-SUMMARY = "Touchscreen calibration data"
-SECTION = "base"
-PR = "r11"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://COPYING;md5=4b5fcfc87fb615860d398b5e38685edf"
-
-SRC_URI = "file://pointercal \
-           file://COPYING"
-
-S = "${WORKDIR}"
-
-do_install() {
-	# Only install file if it has a contents
-	if [ -s ${S}/pointercal ]; then
-	        install -d ${D}${sysconfdir}/
-	        install -m 0644 ${S}/pointercal ${D}${sysconfdir}/
-	fi
-}
-
-ALLOW_EMPTY_${PN} = "1"
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-INHIBIT_DEFAULT_DEPS = "1"
Signature · 1 line
2.4.0
#7 lore raw

PATCH v2 7/10 tslib: remove recipe

In reply to Maxin B. John

Modern systems generally use the kernel driver or libinput instead of tslib. Move tslib from oe-core along with xtscal.

---
 meta/recipes-graphics/tslib/tslib/ts.conf  | 25 --------------
 meta/recipes-graphics/tslib/tslib/tslib.sh |  8 -----
 meta/recipes-graphics/tslib/tslib_1.1.bb   | 53 ------------------------------
 3 files changed, 86 deletions(-)
 delete mode 100644 meta/recipes-graphics/tslib/tslib/ts.conf
 delete mode 100644 meta/recipes-graphics/tslib/tslib/tslib.sh
 delete mode 100644 meta/recipes-graphics/tslib/tslib_1.1.bb
meta/recipes-graphics/tslib/tslib/ts.conf deleted +0 -25
deleted file mode 100644
index 1b0da93..0000000
@@ -1,25 +0,0 @@
-# Uncomment if you wish to use the linux input layer event interface
-module_raw input
-
-# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
-# module_raw collie
-
-# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
-# module_raw corgi
-
-# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
-# module_raw ucb1x00
-
-# Uncomment if you're using an HP iPaq h3600 or similar
-# module_raw h3600
-
-# Uncomment if you're using a Hitachi Webpad
-# module_raw mk712
-
-# Uncomment if you're using an IBM Arctic II
-# module_raw arctic2
-
-module pthres pmin=1
-module variance delta=30
-module dejitter delta=100
-module linear
meta/recipes-graphics/tslib/tslib/tslib.sh deleted +0 -8
deleted file mode 100644
index 7068e8d..0000000
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-if [ -e /dev/input/touchscreen0 ]; then
-    TSLIB_TSDEVICE=/dev/input/touchscreen0
-
-    export TSLIB_TSDEVICE
-fi
-
meta/recipes-graphics/tslib/tslib_1.1.bb deleted +0 -53

53 lines not on this page · raw message

Signature · 1 line
2.4.0
#8 lore raw

Re: [PATCH 07/10] tslib: remove recipe

Hi Maxin,

This breaks meta-qt4 which currently just depends on oe-core.

Can you see if we can make qt4-embedded have a configurable dependency on tslib which is disabled by default?

Ross

Quoted 136 lines · Maxin B. John

Modern systems generally use the kernel driver or libinput instead of tslib. Move tslib from oe-core along with xtscal.

---
 meta/recipes-graphics/tslib/tslib/ts.conf  | 25 --------------
 meta/recipes-graphics/tslib/tslib/tslib.sh |  8 -----
 meta/recipes-graphics/tslib/tslib_1.1.bb   | 53
------------------------------
 3 files changed, 86 deletions(-)
 delete mode 100644 meta/recipes-graphics/tslib/tslib/ts.conf
 delete mode 100644 meta/recipes-graphics/tslib/tslib/tslib.sh
 delete mode 100644 meta/recipes-graphics/tslib/tslib_1.1.bb
meta/recipes-graphics/tslib/tslib/ts.conf deleted +0 -25
deleted file mode 100644
index 1b0da93..0000000
@@ -1,25 +0,0 @@
-# Uncomment if you wish to use the linux input layer event interface
-module_raw input
-
-# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
-# module_raw collie
-
-# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
-# module_raw corgi
-
-# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
-# module_raw ucb1x00
-
-# Uncomment if you're using an HP iPaq h3600 or similar
-# module_raw h3600
-
-# Uncomment if you're using a Hitachi Webpad
-# module_raw mk712
-
-# Uncomment if you're using an IBM Arctic II
-# module_raw arctic2
-
-module pthres pmin=1
-module variance delta=30
-module dejitter delta=100
-module linear
meta/recipes-graphics/tslib/tslib/tslib.sh deleted +0 -8
deleted file mode 100644
index 7068e8d..0000000
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-if [ -e /dev/input/touchscreen0 ]; then
-    TSLIB_TSDEVICE=/dev/input/touchscreen0
-
-    export TSLIB_TSDEVICE
-fi
-
meta/recipes-graphics/tslib/tslib_1.1.bb deleted +0 -13
deleted file mode 100644
index b0264c3..0000000
@@ -1,53 +0,0 @@
-SUMMARY = "An abstraction layer for touchscreen panel events"
-DESCRIPTION = "Tslib is an abstraction layer for touchscreen panel \
-events, as well as a filter stack for the manipulation of those events. \
-Tslib is generally used on embedded devices to provide a common user \
-space interface to touchscreen functionality."
-HOMEPAGE = "http://tslib.berlios.de/"
-
-AUTHOR = "Russell King w/ plugins by Chris Larson et. al."
-SECTION = "base"
-LICENSE = "LGPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=f30a9716ef3762e3467a2f62bf790f0a"
-
-SRC_URI = "https://github.com/kergoth/tslib/releases/download/${PV}/

tslib-${PV}.tar.xz;downloadfilename=tslib-${PV}.tar.xz \

meta/recipes-graphics/tslib/tslib_1.1.bb deleted +0 -6
-           file://ts.conf \
-           file://tslib.sh \
-"
-
-SRC_URI[md5sum] = "14771f8607b341bb4b297819d37e837d"
-SRC_URI[sha256sum] = "fe35e5f710ea933b118f710e2ce440

3ac076fe69926b570333867d4de082a51c"

meta/recipes-graphics/tslib/tslib_1.1.bb deleted +0 -33
-
-UPSTREAM_CHECK_URI = "https://github.com/kergoth/tslib/releases"
-
-inherit autotools pkgconfig
-
-EXTRA_OECONF = "--enable-shared --disable-h3600 --enable-input
--disable-corgi --disable-collie --disable-mk712 --disable-arctic2
--disable-ucb1x00"
-
-do_install_prepend() {
-       install -m 0644 ${WORKDIR}/ts.conf ${S}/etc/ts.conf
-}
-
-do_install_append() {
-       install -d ${D}${sysconfdir}/profile.d/
-       install -m 0755 ${WORKDIR}/tslib.sh ${D}${sysconfdir}/profile.d/
-}
-
-# People should consider using udev's /dev/input/touchscreen0 symlink
-# instead of detect-stylus
-#RDEPENDS_tslib-conf_weird-machine = "detect-stylus"
-RPROVIDES_tslib-conf = "libts-0.0-conf"
-
-PACKAGES =+ "tslib-conf tslib-tests tslib-calibrate"
-DEBIAN_NOAUTONAME_tslib-conf = "1"
-DEBIAN_NOAUTONAME_tslib-tests = "1"
-DEBIAN_NOAUTONAME_tslib-calibrate = "1"
-
-RDEPENDS_${PN} = "tslib-conf"
-RRECOMMENDS_${PN} = "pointercal"
-
-FILES_${PN}-dev += "${libdir}/ts/*.la"
-FILES_tslib-conf = "${sysconfdir}/ts.conf ${sysconfdir}/profile.d/tslib.sh

${datadir}/tslib"

meta/recipes-graphics/tslib/tslib_1.1.bb deleted +0 -3
-FILES_${PN} = "${libdir}/*.so.* ${libdir}/ts/*.so*"
-FILES_tslib-calibrate += "${bindir}/ts_calibrate"
-FILES_tslib-tests = "${bindir}/ts_harvest ${bindir}/ts_print

${bindir}/ts_print_raw ${bindir}/ts_test"
--
2.4.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#9 lore raw

Re: [PATCH 07/10] tslib: remove recipe

Hi Ross,

Quoted 4 lines · Ross

Hi Maxin,

This breaks meta-qt4 which currently just depends on oe-core.

Haven't noticed this before. Thanks for sharing this info.

Quoted 2 lines

Can you see if we can make qt4-embedded have a configurable dependency on tslib which is disabled by default?

Sure, will fix it.

Quoted 6 lines

Ross

Quoted 5 lines · Maxin B. John

Modern systems generally use the kernel driver or libinput instead of tslib. Move tslib from oe-core along with xtscal.

Best Regards,
Maxin

#10 lore raw

Re: [PATCH 07/10] tslib: remove recipe

In reply to Maxin B. John

"Maxin B. John" <[email protected]>

Quoted 1 line · writes:

Modern systems generally use the kernel driver or libinput instead

This is wrong. afaik, 'tslib' is more or less mandatory for systems with resistive touchscreens (which are often used in industrial environments). Kernel interface does not suffice there because values *must* be calibrated (usually per device and periodically since parameters change with time) and "smoothed".

Enrico

#11 lore raw

PATCH v2 8/10 packagegroup-core-tools-testapps: remove tslib references

In reply to Maxin B. John

Remove tslib references from packagegroup-core-tools-testapps since we removed tslib along with xtscal.

---
 meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb | 2 --
 1 file changed, 2 deletions(-)
meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb +0 -2
index e2d93d2..3170978 100644
@@ -35,8 +35,6 @@ X11TOOLS = "\
 
 RDEPENDS_${PN} = "\
     blktool \
-    tslib-calibrate \
-    tslib-tests \
     lrzsz \
     ${KEXECTOOLS} \
     alsa-utils-amixer \
Signature · 1 line
2.4.0
#12 lore raw

PATCH v2 9/10 distro_alias.inc: remove xtscal, pointercal and tslib references

In reply to Maxin B. John

Remove xtscal, pointercal and tslib reference from distro_alias.inc file since we moved those recipes from oe-core

---
 meta/conf/distro/include/distro_alias.inc | 3 ---
 1 file changed, 3 deletions(-)
meta/conf/distro/include/distro_alias.inc +0 -3
index 5948b75..9e00ae6 100644
@@ -311,7 +311,6 @@ DISTRO_PN_ALIAS_pn-patchelf = "Opensuse=patchelf Fedora=patchelf"
 DISTRO_PN_ALIAS_pn-perf = "OSPDT"
 DISTRO_PN_ALIAS_pn-piglit = "OE-Core"
 DISTRO_PN_ALIAS_pn-pkgconfig = "Ubuntu=pkg-config Fedora=pkgconfig"
-DISTRO_PN_ALIAS_pn-pointercal = "OE-Core"
 DISTRO_PN_ALIAS_pn-pointercal-xinput = "OE-Core"
 DISTRO_PN_ALIAS_pn-pong-clock = "OpenedHand"
 DISTRO_PN_ALIAS_pn-portmap = "Debian=rpcbind Fedora=rpcbind"
@@ -379,7 +378,6 @@ DISTRO_PN_ALIAS_pn-texinfo-dummy-native = "OE-Core"
 DISTRO_PN_ALIAS_pn-tiny-init = "OSPDT"
 DISTRO_PN_ALIAS_pn-trace-cmd = "Mandriva=trace-cmd Ubuntu=trace-cmd"
 DISTRO_PN_ALIAS_pn-tremor = "OSPDT upstream=http://www.xiph.org/vorbis/"
-DISTRO_PN_ALIAS_pn-tslib = "Debian=tslib Ubuntu=tslib"
 DISTRO_PN_ALIAS_pn-ttf-bitstream-vera = "Debian=ttf-bitstream-vera Ubuntu=ttf-bitstream-vera"
 DISTRO_PN_ALIAS_pn-tzcode = "OSPDT"
 DISTRO_PN_ALIAS_pn-u-boot-fw-utils = "Ubuntu=u-boot-tools Debian=u-boot-tools"
@@ -448,7 +446,6 @@ DISTRO_PN_ALIAS_pn-xserver-xf86-dri-lite = "Fedora=xorg-x11-server Ubuntu=xserve
 DISTRO_PN_ALIAS_pn-xserver-xf86-lite = "Fedora=xorg-x11-server Ubuntu=xserver-xorg"
 DISTRO_PN_ALIAS_pn-xserver-xorg = "Fedora=xorg-x11-server Ubuntu=xserver-xorg"
 DISTRO_PN_ALIAS_pn-xset = "Fedora=xorg-x11-server-utils Ubuntu=x11-xserver-utils Debian=x11-xserver-utils Opensuse=xorg-x11"
-DISTRO_PN_ALIAS_pn-xtscal = "OSPDT upstream=http://gpe.linuxtogo.org/download/source/"
 DISTRO_PN_ALIAS_pn-xuser-account = "OE-Core"
 DISTRO_PN_ALIAS_pn-xvideo-tests = "OpenedHand"
 DISTRO_PN_ALIAS_pn-xvinfo = "Fedora=xorg-x11-utils Ubuntu=x11-utils"
Signature · 1 line
2.4.0
#13 lore raw

PATCH v2 10/10 layer.conf: remove pointercal

In reply to Maxin B. John

remove pointercal reference from layer.conf file since we moved the pointercal recipe from oe-core.

---
 meta/conf/layer.conf | 1 -
 1 file changed, 1 deletion(-)
meta/conf/layer.conf +0 -1
index b6d5f1c..24b4df0 100644
@@ -26,7 +26,6 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
   connman-conf \
   formfactor \
   xserver-xf86-config \
-  pointercal \
   pointercal-xinput \
   base-files \
   keymaps \
Signature · 1 line
2.4.0
#14 lore raw
In reply to Maxin B. John
Quoted 12 lines · Maxin B. John

Remove xtscal in preference of xinput-calibrator

[YOCTO #9365]
[YOCTO #8380]

Changes in v2:
1. Removed bash dependency from xinput-calibrator
2. Moved tslib recipe from oe-core since modern systems tend to use kernel driver or libinput
3. removed pointercal reference from packagegroup-core-x11-base
4. removed tslib references from packagegroup-core-tools-testapps

Quoted 3 lines

The following changes since commit dfc016fbf13e62f7767edaf7abadf1d1b72680b2:

maintainers.inc: remove augeas (2016-08-02 14:05:58 +0100)

It would be nice to order the changes in this series that the recipes are removed only after the references to them to keep the history bisect-able, e.g. xtscal, tslib and pointercal are removed while they are still referenced from elsewhere.

Quoted 72 lines

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib maxin/xtscal
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=maxin/xtscal

Maxin B. John (10):
xtscal: remove recipe
x11-common: replace xtscal with xinput-calibrator
pointercal-xinput: add a dummy calibration file for qemu packagegroup-core-x11-base.bb: remove pointercal
xinput-calibrator: remove bash dependency
pointercal: remove recipe
tslib: remove recipe packagegroup-core-tools-testapps: remove tslib references distro_alias.inc: remove xtscal, pointercal and tslib references layer.conf: remove pointercal

 meta/conf/distro/include/distro_alias.inc          |   3 -
 meta/conf/layer.conf                               |   1 -
 meta/recipes-bsp/pointercal/pointercal/COPYING     |   2 -
 meta/recipes-bsp/pointercal/pointercal/pointercal  |   0
 .../pointercal/pointercal/qemuarm/pointercal       |   1 -
 .../pointercal/pointercal/qemuarmv6/pointercal     |   1 -
 .../pointercal/pointercal/qemuarmv7/pointercal     |   1 -
 .../pointercal/pointercal/qemumips/pointercal      |   1 -
 .../pointercal/pointercal/qemuppc/pointercal       | Bin 36 -> 0 bytes
 .../pointercal/pointercal/qemux86-64/pointercal    |   1 -
 .../pointercal/pointercal/qemux86/pointercal       |   1 -
 meta/recipes-bsp/pointercal/pointercal_0.0.bb      |  22 -
 .../packagegroup-core-tools-testapps.bb            |   2 -
 .../packagegroups/packagegroup-core-x11-base.bb    |   1 -
 meta/recipes-graphics/tslib/tslib/ts.conf          |  25 -
 meta/recipes-graphics/tslib/tslib/tslib.sh         |   8 -
 meta/recipes-graphics/tslib/tslib_1.1.bb           |  53 --
 meta/recipes-graphics/x11-common/x11-common_0.1.bb |   2 +-
 .../pointercal-xinput/qemuall/pointercal.xinput    |   2 +
 .../add-geometry-input-when-calibrating.patch      |  31 +-
 .../xinput-calibrator/xinput-calibrator_git.bb     |   2 +-
 .../xtscal/xtscal/30xTs_Calibrate.sh               |  13 -
 .../xtscal/xtscal/change-cross.patch               |  18 -
 meta/recipes-graphics/xtscal/xtscal/cleanup.patch  | 621 ---------------------
 .../xtscal/dso_linking_change_build_fix.patch      |  27 -
 meta/recipes-graphics/xtscal/xtscal_0.6.3.bb       |  33 --
 26 files changed, 20 insertions(+), 852 deletions(-)
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/COPYING
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuarm/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuarmv6/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuarmv7/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemumips/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemuppc/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemux86-64/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal/qemux86/pointercal
 delete mode 100644 meta/recipes-bsp/pointercal/pointercal_0.0.bb
 delete mode 100644 meta/recipes-graphics/tslib/tslib/ts.conf
 delete mode 100644 meta/recipes-graphics/tslib/tslib/tslib.sh
 delete mode 100644 meta/recipes-graphics/tslib/tslib_1.1.bb
 create mode 100644 meta/recipes-graphics/xinput-calibrator/pointercal-xinput/qemuall/pointercal.xinput
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/change-cross.patch
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/cleanup.patch
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal/dso_linking_change_build_fix.patch
 delete mode 100644 meta/recipes-graphics/xtscal/xtscal_0.6.3.bb
Signature · 7 lines
2.4.0

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#15 lore raw

Hi Martin,

Quoted 13 lines · Martin Jansa
Quoted 12 lines · Maxin B. John

Remove xtscal in preference of xinput-calibrator

[YOCTO #9365]
[YOCTO #8380]

Changes in v2:
1. Removed bash dependency from xinput-calibrator
2. Moved tslib recipe from oe-core since modern systems tend to use kernel driver or libinput
3. removed pointercal reference from packagegroup-core-x11-base
4. removed tslib references from packagegroup-core-tools-testapps

Quoted 8 lines
Quoted 3 lines

The following changes since commit dfc016fbf13e62f7767edaf7abadf1d1b72680b2:

maintainers.inc: remove augeas (2016-08-02 14:05:58 +0100)

It would be nice to order the changes in this series that the recipes are removed only after the references to them to keep the history bisect-able, e.g. xtscal, tslib and pointercal are removed while they are still referenced from elsewhere.

Sure, I have reordered the patches and force pushed those to "maxin/xtscal" branch:

New order is as below:

Maxin B. John (10):
xtscal: remove recipe
tslib: remove recipe
pointercal: remove recipe
x11-common: replace xtscal with xinput-calibrator
pointercal-xinput: add a dummy calibration file for qemu packagegroup-core-x11-base.bb: remove pointercal
xinput-calibrator: remove bash dependency packagegroup-core-tools-testapps: remove tslib references distro_alias.inc: remove xtscal, pointercal and tslib references layer.conf: remove pointercal

Quoted 5 lines
Quoted 5 lines

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib maxin/xtscal
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=maxin/xtscal

Quoted 12 lines
Quoted 12 lines

Maxin B. John (10):
xtscal: remove recipe
x11-common: replace xtscal with xinput-calibrator
pointercal-xinput: add a dummy calibration file for qemu packagegroup-core-x11-base.bb: remove pointercal
xinput-calibrator: remove bash dependency
pointercal: remove recipe
tslib: remove recipe packagegroup-core-tools-testapps: remove tslib references distro_alias.inc: remove xtscal, pointercal and tslib references layer.conf: remove pointercal

<snip>

Best Regards,
Maxin