mirror of
https://git.yoctoproject.org/poky
synced 2026-07-16 15:57:04 +00:00
0a3d3b606e
People using xserver-xorg that need to calibrate their touchscreen devices would also need meta-oe. Bringing the recipes to oe-core will make it easier for them. Aditionaly: * drop xterm RDEPENDS. Terminal is not needed to run the menu item; * change xinput_calibrator_pointercal.sh so that it can be run as normal user: pointercal.xinput is saved to ~/.pointercal/ and it will be used when the system boots; * have the calibration run through an Xsession file; * remove the systemd service since calibration is run by Xsession; * do not install pointercal.xinput if it's the default one; [YOCTO #4416] (From OE-Core rev: 4ecafd89dbf41cbd53e6db32678fe625c06caaab) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
21 lines
639 B
BlitzBasic
21 lines
639 B
BlitzBasic
DESCRIPTION = "Touchscreen calibration data from xinput-calibrator"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
PR = "r4"
|
|
|
|
SRC_URI = "file://pointercal.xinput"
|
|
S = "${WORKDIR}"
|
|
|
|
do_install() {
|
|
# Only install file if it has a contents
|
|
if [ -s ${S}/pointercal.xinput ] &&\
|
|
[ ! -n "$(head -n1 ${S}/pointercal.xinput|grep "replace.*pointercal\.xinput")" ]; then
|
|
install -d ${D}${sysconfdir}/
|
|
install -m 0644 ${S}/pointercal.xinput ${D}${sysconfdir}/
|
|
fi
|
|
}
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
CONFFILES_${PN} = "${sysconfdir}/pointercal.xinput"
|