Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 12 commits into from
Sep 28, 2023
Next Next commit
Allow for qmk mass-compile all:<keymap>
  • Loading branch information
tzarc committed Sep 23, 2023
commit 7cfa5de6d7dfd591e04f051996453a928734134f
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], []))
tzarc marked this conversation as resolved.
Show resolved Hide resolved
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