support config as an alias of keyboard_overrides

This commit is contained in:
Zach White 2021-10-03 15:51:23 -07:00
parent 0d9d1d0414
commit 4821b3c3a1
2 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,7 @@
"type": "object", "type": "object",
"properties": { "properties": {
"author": {"type": "string"}, "author": {"type": "string"},
"config": {"$ref": "qmk.keyboard.v1"},
"keyboard": {"$ref": "qmk.definitions.v1#/text_identifier"}, "keyboard": {"$ref": "qmk.definitions.v1#/text_identifier"},
"keyboard_overrides": {"$ref": "qmk.keyboard.v1"}, "keyboard_overrides": {"$ref": "qmk.keyboard.v1"},
"keymap": {"$ref": "qmk.definitions.v1#/text_identifier"}, "keymap": {"$ref": "qmk.definitions.v1#/text_identifier"},

View file

@ -123,6 +123,9 @@ def get_keyboard_overrides(keyboard, keymap=None):
if 'keyboard_overrides' in keymap_json: if 'keyboard_overrides' in keymap_json:
return keymap_json['keyboard_overrides'] return keymap_json['keyboard_overrides']
if 'config' in keymap_json:
return keymap_json['config']
def _extract_features(info_data, rules): def _extract_features(info_data, rules):
"""Find all the features enabled in rules.mk. """Find all the features enabled in rules.mk.