summaryrefslogtreecommitdiffstats
path: root/rules/libinput.make
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2019-09-10 11:15:35 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-22 18:33:06 +0200
commit6edaa1f9d2fd17029d701d8cf10172b001a89a89 (patch)
treeb96e626e4ab54deb3bbc6e4f3811fcd9c9baf7a8 /rules/libinput.make
parent0357a57ce761b965f5c0ae89790179ad71255f7c (diff)
downloadptxdist-6edaa1f9d2fd17029d701d8cf10172b001a89a89.tar.gz
ptxdist-6edaa1f9d2fd17029d701d8cf10172b001a89a89.tar.xz
libinput: optionally install device quirks
Add an option LIBINPUT_QUIRKS to install the input device quirks data. It is only useful for systems that allow connecting external input devices, or for systems that are contained in the quirks database. The size of the quirks database is a bit over 100 KiB. If the input device quirk database is not installed, install a dummy quirk file instead, to silence the libinput error message warning about the missing quirk database. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> [mol: use menuconfig] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libinput.make')
-rw-r--r--rules/libinput.make7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/libinput.make b/rules/libinput.make
index 9e4976ee6..52af77b39 100644
--- a/rules/libinput.make
+++ b/rules/libinput.make
@@ -54,6 +54,13 @@ $(STATEDIR)/libinput.targetinstall:
@$(call install_lib, libinput, 0, 0, 0644, libinput)
+ifdef PTXCONF_LIBINPUT_QUIRKS
+ @$(call install_tree, libinput, 0, 0, -, /usr/share/libinput)
+else
+ @$(call install_alternative, libinput, 0, 0, 0644, \
+ /usr/share/libinput/99-ptxdist-dummy.quirks)
+endif
+
@$(call install_finish, libinput)
@$(call touch)