diff options
author | Sean Young <sean@mess.org> | 2019-07-30 14:58:28 +0900 |
---|---|---|
committer | Sean Young <sean@mess.org> | 2019-08-08 22:28:24 +0100 |
commit | 73f8f2f0acdce9f9ad91da9aa5390c5c7a6ddfd2 (patch) | |
tree | 81843410ad7837ed373aef3af1afb66a736adbb8 /utils/keytable/bpf_protocols/Makefile.am | |
parent | 6aa15f7447d4aeca6af1ed7ee9644a0c7e891ece (diff) |
keytable: add support for keymap with raw literals
These rc keymaps look like:
[[protocols]]
name = 'Beon_Colour_TV'
protocol = 'raw'
[[protocols.raw]]
keycode = 'KEY_POWER'
raw = [ 1324, 842, 6697, 26400, 1324, 842, 6697 ]
[[protocols.raw]]
keycode = 'KEY_MUTE'
raw = [ 1305, 865, 2357, 931, 3411, 26400, 1305, 865, 2357, 931, 3411 ]
So the incoming IR will be literally compared against the IR given, and only
if the entire array matches with no leading or trailing IR will the keycode
be reported.
This is analogous to lircd raw_codes support, so lircd2toml.py can also
convert raw_codes lircd.conf files. This means that the vast majority of
lircd files can now be converted.
This feature requires loops in BPF programs so this is only supported
in kernel 5.3 onwards.
Signed-off-by: Sean Young <sean@mess.org>
Diffstat (limited to 'utils/keytable/bpf_protocols/Makefile.am')
-rw-r--r-- | utils/keytable/bpf_protocols/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/keytable/bpf_protocols/Makefile.am b/utils/keytable/bpf_protocols/Makefile.am index bca3bdec..d9facbc9 100644 --- a/utils/keytable/bpf_protocols/Makefile.am +++ b/utils/keytable/bpf_protocols/Makefile.am @@ -10,7 +10,7 @@ CLANG_SYS_INCLUDES := $(shell $(CLANG) -v -E - </dev/null 2>&1 \ %.o: %.c bpf_helpers.h $(CLANG) $(CLANG_SYS_INCLUDES) -D__linux__ -I$(top_srcdir)/include -target bpf -O2 -c $< -PROTOCOLS = grundig.o pulse_distance.o pulse_length.o rc_mm.o manchester.o xbox-dvd.o imon_rsc.o +PROTOCOLS = grundig.o pulse_distance.o pulse_length.o rc_mm.o manchester.o xbox-dvd.o imon_rsc.o raw.o all: $(PROTOCOLS) |