summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-11-29 02:46:47 +0000
committerQMK Bot <hello@qmk.fm>2023-11-29 02:46:47 +0000
commite90874c382cdcb4482ac2e420b250053c05d0478 (patch)
tree58b0e057dc160875c5690af89340dac6a46199f4
parent6bba3c657801774fb751e58f6ed1f655a14b22c0 (diff)
parentb7df75e47f446bd2e969f3adb8cb584852929213 (diff)
Merge remote-tracking branch 'origin/master' into develop
-rwxr-xr-xlib/python/qmk/cli/compile.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/python/qmk/cli/compile.py b/lib/python/qmk/cli/compile.py
index 3c8f3664ea..03ee743505 100755
--- a/lib/python/qmk/cli/compile.py
+++ b/lib/python/qmk/cli/compile.py
@@ -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 = []
@@ -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)