hwdb: ignore keys added in kernel 5.5

python-evdev needs to be rebuilt with new kernel headers. Before that
happens, our test would reject those keys as unknown.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-12-19 11:48:46 +01:00
parent 419a8a2dab
commit 12c7d4d65e

View file

@ -196,10 +196,11 @@ def check_one_mount_matrix(prop, value):
def check_one_keycode(prop, value): def check_one_keycode(prop, value):
if value != '!' and ecodes is not None: if value != '!' and ecodes is not None:
key = 'KEY_' + value.upper() key = 'KEY_' + value.upper()
if key not in ecodes: if not (key in ecodes or
key = value.upper() value.upper() in ecodes or
if key not in ecodes: # new keys added in kernel 5.5
error('Keycode {} unknown', key) 'KBD_LCD_MENU' in key):
error('Keycode {} unknown', key)
def check_properties(groups): def check_properties(groups):
grammar = property_grammar() grammar = property_grammar()