Enable 'keyboard.json' as a build target (#22891)
This commit is contained in:
parent
c5225ab500
commit
9f4a9d5826
12 changed files with 53 additions and 45 deletions
|
@ -15,8 +15,9 @@ def is_keyboard(keyboard_name):
|
|||
if keyboard_name:
|
||||
keyboard_path = QMK_FIRMWARE / 'keyboards' / keyboard_name
|
||||
rules_mk = keyboard_path / 'rules.mk'
|
||||
keyboard_json = keyboard_path / 'keyboard.json'
|
||||
|
||||
return rules_mk.exists()
|
||||
return rules_mk.exists() or keyboard_json.exists()
|
||||
|
||||
|
||||
def under_qmk_firmware(path=Path(os.environ['ORIG_CWD'])):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue