Skip to content

Commit

Permalink
Allow for qmk mass-compile all:<keymap>
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Sep 23, 2023
1 parent 73ffa45 commit 7cfa5de
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/python/qmk/cli/mass_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,17 @@ def mass_compile(cli):
makefile = builddir / 'parallel_kb_builds.mk'

if len(cli.args.builds) > 0:
targets = list(sorted(set([(resolve_keyboard(e[0]), e[1]) for e in [b.split(':') for b in cli.args.builds]])))
targets = []
for target in cli.args.builds:
split_target = target.split(':')
if len(split_target) != 2:
cli.log.error(f"Invalid build target: {target}")
return False
if split_target[0] == 'all':
targets.extend(search_keymap_targets(split_target[1], []))
else:
targets.append((resolve_keyboard(split_target[0]), split_target[1]))
targets = list(sorted(set([(e[0], e[1]) for e in targets])))
else:
targets = search_keymap_targets(cli.args.keymap, cli.args.filter)

Expand Down

0 comments on commit 7cfa5de

Please sign in to comment.