Browse Source

support config as an alias of keyboard_overrides

keyboard_overrides
Zach White 2 years ago
parent
commit
4821b3c3a1
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      data/schemas/keymap.jsonschema
  2. +3
    -0
      lib/python/qmk/info.py

+ 1
- 0
data/schemas/keymap.jsonschema View File

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


+ 3
- 0
lib/python/qmk/info.py View File

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


Loading…
Cancel
Save