1
0
Fork 0

Enable 'keyboard.json' as a build target (#22891)

This commit is contained in:
Joel Challis 2024-03-10 05:20:25 +00:00 committed by GitHub
parent c5225ab500
commit 9f4a9d5826
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 53 additions and 45 deletions

View file

@ -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'])):