1
0
Fork 0

Allow for qmk mass-compile all:<keymap> (#22116)

Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
Nick Brassel 2023-09-29 06:48:20 +10:00 committed by GitHub
parent fb0c64a567
commit c5706ef791
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 198 additions and 127 deletions

View file

@ -1,6 +1,7 @@
"""Functions that help us work with keyboards.
"""
from array import array
from functools import lru_cache
from math import ceil
from pathlib import Path
import os
@ -144,6 +145,7 @@ def list_keyboards(resolve_defaults=True):
return sorted(set(found))
@lru_cache(maxsize=None)
def resolve_keyboard(keyboard):
cur_dir = Path('keyboards')
rules = parse_rules_mk_file(cur_dir / keyboard / 'rules.mk')