diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2019-09-10 11:15:35 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-09-22 18:33:06 +0200 |
commit | 6edaa1f9d2fd17029d701d8cf10172b001a89a89 (patch) | |
tree | b96e626e4ab54deb3bbc6e4f3811fcd9c9baf7a8 /rules | |
parent | 0357a57ce761b965f5c0ae89790179ad71255f7c (diff) | |
download | ptxdist-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')
-rw-r--r-- | rules/libinput.in | 16 | ||||
-rw-r--r-- | rules/libinput.make | 7 |
2 files changed, 21 insertions, 2 deletions
diff --git a/rules/libinput.in b/rules/libinput.in index 0a39bbd25..7765721b1 100644 --- a/rules/libinput.in +++ b/rules/libinput.in @@ -1,16 +1,28 @@ ## SECTION=multimedia_libs -config LIBINPUT +menuconfig LIBINPUT tristate select HOST_MESON select MTDEV select LIBEVDEV select UDEV select UDEV_LIBUDEV - prompt "libinput" + prompt "libinput " help libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver. It provides device detection, device handling, input device event processing and abstraction so minimize the amount of custom input code compositors need to provide the common set of functionality that users expect. + +if LIBINPUT + +config LIBINPUT_QUIRKS + bool + prompt "install device quirks" + help + Installing the input device quirks database is useful for systems + that allow connecting external input devices, or for systems that are + contained in the quirks database. + +endif 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) |