Skip to content

Commit

Permalink
Fixup compilation with qmk compile -kb zzz -km all. (qmk#22568)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Nov 29, 2023
1 parent 5c20a84 commit b7df75e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/python/qmk/cli/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def compile(cli):
If a keyboard and keymap are provided this command will build a firmware based on that.
"""

# If we've received `-kb all`, reroute it to mass-compile.
if is_all_keyboards(cli.args.keyboard):
from .mass_compile import mass_compile
cli.args.builds = []
Expand All @@ -42,6 +44,16 @@ def compile(cli):
cli.config.mass_compile.no_temp = False
return mass_compile(cli)

# If we've received `-km all`, reroute it to mass-compile.
if cli.args.keymap == 'all':
from .mass_compile import mass_compile
cli.args.builds = [f'{cli.args.keyboard}:all']
cli.args.filter = []
cli.config.mass_compile.keymap = None
cli.config.mass_compile.parallel = cli.config.compile.parallel
cli.config.mass_compile.no_temp = False
return mass_compile(cli)

# Build the environment vars
envs = build_environment(cli.args.env)

Expand Down

0 comments on commit b7df75e

Please sign in to comment.