Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 1 | From 01f2c6c58e6f4441df7df8e27eb7919f1f01e310 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Ulrich=20=C3=96lmann?= <u.oelmann@pengutronix.de> |
| 3 | Date: Thu, 4 Mar 2021 14:23:40 +0100 |
| 4 | Subject: [PATCH] keytable: restrict installation of 50-rc_keymap.conf |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | It is only needed if BPF is effectively used and the package is compiled for a |
| 10 | systemd based target. |
| 11 | |
| 12 | Upstream-Status: Backport [https://git.linuxtv.org/v4l-utils.git/commit/?id=01f2c6c58e6f4441df7df8e27eb7919f1f01e310] |
| 13 | |
| 14 | Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> |
| 15 | Signed-off-by: Sean Young <sean@mess.org> |
| 16 | --- |
| 17 | utils/keytable/Makefile.am | 4 ++++ |
| 18 | 1 file changed, 4 insertions(+) |
| 19 | |
| 20 | diff --git a/utils/keytable/Makefile.am b/utils/keytable/Makefile.am |
| 21 | index c5eb414acf2f..eee61f0e0551 100644 |
| 22 | --- a/utils/keytable/Makefile.am |
| 23 | +++ b/utils/keytable/Makefile.am |
| 24 | @@ -3,9 +3,13 @@ man_MANS = ir-keytable.1 rc_keymap.5 |
| 25 | sysconf_DATA = rc_maps.cfg |
| 26 | keytablesystem_DATA = $(srcdir)/rc_keymaps/* |
| 27 | udevrules_DATA = 70-infrared.rules |
| 28 | +if WITH_BPF |
| 29 | +if HAVE_SYSTEMD |
| 30 | if HAVE_UDEVDSYSCALLFILTER |
| 31 | systemdsystemunit_DATA = 50-rc_keymap.conf |
| 32 | endif |
| 33 | +endif |
| 34 | +endif |
| 35 | |
| 36 | ir_keytable_SOURCES = keytable.c parse.h ir-encode.c ir-encode.h toml.c toml.h keymap.c keymap.h |
| 37 | |
| 38 | -- |
| 39 | 2.29.2 |
| 40 | |