]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: ignore keys added in kernel 5.5 13748/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 19 Dec 2019 10:48:46 +0000 (11:48 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 19 Dec 2019 10:48:46 +0000 (11:48 +0100)
python-evdev needs to be rebuilt with new kernel headers. Before that
happens, our test would reject those keys as unknown.

hwdb.d/parse_hwdb.py

index 9a933b82b290869d564f2e98630c77b253df723c..b5395b11fe53627aa9f472812ee66213b7e0121d 100755 (executable)
@@ -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()