Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
# replace with valid machine specific pointercal.xinput
|
||||
@@ -0,0 +1,2 @@
|
||||
# Dummy pointercal.xinput file to prevent xinput_calibrator
|
||||
# from running on qemu startup
|
||||
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "Touchscreen calibration data from xinput-calibrator"
|
||||
DESCRIPTION = "A generic touchscreen calibration program for X.Org"
|
||||
HOMEPAGE = "https://www.freedesktop.org/wiki/Software/xinput_calibrator/"
|
||||
BUGTRACKER = "https://github.com/tias/xinput_calibrator/issues"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
|
||||
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"
|
||||
@@ -0,0 +1,28 @@
|
||||
From 79bc507b48d4acd3dec8a85ab6b341b872d44a05 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 29 Jan 2019 22:40:24 -0800
|
||||
Subject: [PATCH] calibrator.hh: Include <string> to get std::string
|
||||
|
||||
Found with libc++
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/tias/xinput_calibrator/pull/76]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/calibrator.hh | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/calibrator.hh b/src/calibrator.hh
|
||||
index a6f9504..e75bcef 100644
|
||||
--- a/src/calibrator.hh
|
||||
+++ b/src/calibrator.hh
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <X11/Xlib.h>
|
||||
#include <stdio.h>
|
||||
#include <vector>
|
||||
+#include <string>
|
||||
|
||||
// XXX: we currently don't handle lines that are longer than this
|
||||
#define MAX_LINE_LEN 1024
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/formfactor/config
|
||||
|
||||
if [ "$HAVE_TOUCHSCREEN" = "1" ]; then
|
||||
/usr/bin/xinput_calibrator_once.sh
|
||||
fi
|
||||
@@ -0,0 +1,66 @@
|
||||
Upstream-Status: Inactive-Upstream [last commits over a decade ago]
|
||||
|
||||
From 14734a93bd3fc323325459e24b04795422e395e6 Mon Sep 17 00:00:00 2001
|
||||
From: Laurentiu Palcu <laurentiu.palcu@intel.com>
|
||||
Date: Mon, 1 Jul 2013 15:38:02 +0300
|
||||
Subject: [PATCH] Allow xinput_calibrator_pointercal.sh to be run as normal
|
||||
user
|
||||
|
||||
Allow normal user to create their own pointercal.xinput files that
|
||||
override the system pointercal file in /etc.
|
||||
|
||||
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
|
||||
---
|
||||
scripts/xinput_calibrator_pointercal.sh | 33 +++++++++++++++++++++----------
|
||||
1 file changed, 23 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/scripts/xinput_calibrator_pointercal.sh b/scripts/xinput_calibrator_pointercal.sh
|
||||
index fccb197..0ada7da 100755
|
||||
--- a/scripts/xinput_calibrator_pointercal.sh
|
||||
+++ b/scripts/xinput_calibrator_pointercal.sh
|
||||
@@ -11,19 +11,32 @@
|
||||
PATH="/usr/bin:$PATH"
|
||||
|
||||
BINARY="xinput_calibrator"
|
||||
-CALFILE="/etc/pointercal.xinput"
|
||||
-LOGFILE="/var/log/xinput_calibrator.pointercal.log"
|
||||
+SYS_CALFILE="/etc/pointercal.xinput"
|
||||
+USER_CALFILE="$HOME/.pointercal/pointercal.xinput"
|
||||
|
||||
-if [ -e $CALFILE ] ; then
|
||||
- if grep replace $CALFILE ; then
|
||||
- echo "Empty calibration file found, removing it"
|
||||
- rm $CALFILE
|
||||
- else
|
||||
- echo "Using calibration data stored in $CALFILE"
|
||||
- . $CALFILE && exit 0
|
||||
- fi
|
||||
+if [ "$USER" = "root" ]; then
|
||||
+ LOGFILE="/var/log/xinput_calibrator.pointercal.log"
|
||||
+ CALFILES="$SYS_CALFILE"
|
||||
+else
|
||||
+ LOGFILE="$HOME/.pointercal/xinput_calibrator.pointercal.log"
|
||||
+ CALFILES="$USER_CALFILE $SYS_CALFILE"
|
||||
+ mkdir -p "$HOME/.pointercal"
|
||||
fi
|
||||
|
||||
+for CALFILE in $CALFILES; do
|
||||
+ if [ -e $CALFILE ]; then
|
||||
+ if grep replace $CALFILE ; then
|
||||
+ echo "Empty calibration file found, removing it"
|
||||
+ rm $CALFILE 2>/dev/null || true
|
||||
+ else
|
||||
+ echo "Using calibration data stored in $CALFILE"
|
||||
+ . $CALFILE && exit 0
|
||||
+ fi
|
||||
+ fi
|
||||
+done
|
||||
+
|
||||
+[ "$USER" != "root" ] && CALFILE=$USER_CALFILE
|
||||
+
|
||||
CALDATA=`$BINARY --output-type xinput -v | tee $LOGFILE | grep ' xinput set' | sed 's/^ //g; s/$/;/g'`
|
||||
if [ ! -z "$CALDATA" ] ; then
|
||||
echo $CALDATA > $CALFILE
|
||||
--
|
||||
1.7.9.5
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
SUMMARY = "Touchscreen calibration program for X11"
|
||||
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/xinput_calibrator"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://src/calibrator.cpp;endline=22;md5=1bcba08f67cdb56f34021557898e4b5a"
|
||||
DEPENDS = "virtual/libx11 libxi libxrandr"
|
||||
|
||||
PV = "0.7.5+git"
|
||||
|
||||
inherit autotools pkgconfig features_check
|
||||
# depends on virtual/libx11
|
||||
REQUIRED_DISTRO_FEATURES = "x11"
|
||||
|
||||
SRCREV = "18ec53f1cada39f905614ebfaffed5c7754ecf46"
|
||||
SRC_URI = "git://github.com/kreijack/xinput_calibrator.git;branch=libinput;protocol=https \
|
||||
file://30xinput_calibrate.sh \
|
||||
file://Allow-xinput_calibrator_pointercal.sh-to-be-run-as-n.patch \
|
||||
file://0001-calibrator.hh-Include-string-to-get-std-string.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# force native X11 ui as we don't have gtk+ in DEPENDS
|
||||
EXTRA_OECONF += "--with-gui=x11"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${S}/scripts/xinput_calibrator_pointercal.sh ${D}${bindir}/xinput_calibrator_once.sh
|
||||
|
||||
install -d ${D}${sysconfdir}/X11/Xsession.d/
|
||||
install -m 0755 ${WORKDIR}/30xinput_calibrate.sh ${D}${sysconfdir}/X11/Xsession.d/
|
||||
|
||||
install -d ${D}${sysconfdir}/xdg/autostart
|
||||
sed -e 's,^Exec=.*,Exec=${bindir}/xinput_calibrator_once.sh,' ${S}/scripts/xinput_calibrator.desktop > ${D}${sysconfdir}/xdg/autostart/xinput_calibrator.desktop
|
||||
}
|
||||
|
||||
FILES:${PN} += "${sysconfdir}/xdg/autostart"
|
||||
RDEPENDS:${PN} = "xinput formfactor"
|
||||
RRECOMMENDS:${PN} = "pointercal-xinput"
|
||||
Reference in New Issue
Block a user