mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
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:
@@ -196,10 +196,11 @@ def check_one_mount_matrix(prop, value):
|
||||
def check_one_keycode(prop, value):
|
||||
if value != '!' and ecodes is not None:
|
||||
key = 'KEY_' + value.upper()
|
||||
if key not in ecodes:
|
||||
key = value.upper()
|
||||
if key not in ecodes:
|
||||
error('Keycode {} unknown', key)
|
||||
if not (key in ecodes or
|
||||
value.upper() in ecodes or
|
||||
# new keys added in kernel 5.5
|
||||
'KBD_LCD_MENU' in key):
|
||||
error('Keycode {} unknown', key)
|
||||
|
||||
def check_properties(groups):
|
||||
grammar = property_grammar()
|
||||
|
||||
Reference in New Issue
Block a user