blob: 63a695f8f9ec1a7a8ed49123358a888a43df5354 [file] [log] [blame]
Andrew Geisslerf103a7f2021-05-07 16:09:40 -05001From 01f2c6c58e6f4441df7df8e27eb7919f1f01e310 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Ulrich=20=C3=96lmann?= <u.oelmann@pengutronix.de>
3Date: Thu, 4 Mar 2021 14:23:40 +0100
4Subject: [PATCH] keytable: restrict installation of 50-rc_keymap.conf
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9It is only needed if BPF is effectively used and the package is compiled for a
10systemd based target.
11
12Upstream-Status: Backport [https://git.linuxtv.org/v4l-utils.git/commit/?id=01f2c6c58e6f4441df7df8e27eb7919f1f01e310]
13
14Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
15Signed-off-by: Sean Young <sean@mess.org>
16---
17 utils/keytable/Makefile.am | 4 ++++
18 1 file changed, 4 insertions(+)
19
20diff --git a/utils/keytable/Makefile.am b/utils/keytable/Makefile.am
21index 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--
392.29.2
40