Patchwork [2/2] pointercal-xinput: Import recipe from Meta-OpenEmbedded

login
register
mail settings
Submitter Otavio Salvador
Date April 3, 2013, 10:23 p.m.
Message ID <1365027820-2912-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/47377/
State New
Headers show

Comments

Otavio Salvador - April 3, 2013, 10:23 p.m.
This should be used to provide calibration information for xinput
based touchscreens.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 .../pointercal/pointercal-xinput/pointercal.xinput    |  1 +
 meta/recipes-bsp/pointercal/pointercal-xinput_0.0.bb  | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 meta/recipes-bsp/pointercal/pointercal-xinput/pointercal.xinput
 create mode 100644 meta/recipes-bsp/pointercal/pointercal-xinput_0.0.bb

Patch

diff --git a/meta/recipes-bsp/pointercal/pointercal-xinput/pointercal.xinput b/meta/recipes-bsp/pointercal/pointercal-xinput/pointercal.xinput
new file mode 100644
index 0000000..9633fc5
--- /dev/null
+++ b/meta/recipes-bsp/pointercal/pointercal-xinput/pointercal.xinput
@@ -0,0 +1 @@ 
+# replace with valid machine specific pointercal.xinput
diff --git a/meta/recipes-bsp/pointercal/pointercal-xinput_0.0.bb b/meta/recipes-bsp/pointercal/pointercal-xinput_0.0.bb
new file mode 100644
index 0000000..9b68d54
--- /dev/null
+++ b/meta/recipes-bsp/pointercal/pointercal-xinput_0.0.bb
@@ -0,0 +1,19 @@ 
+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 ]; then
+	        install -d ${D}${sysconfdir}/
+	        install -m 0644 ${S}/pointercal.xinput ${D}${sysconfdir}/
+	fi
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+CONFFILES_${PN} = "${sysconfdir}/pointercal.xinput"