summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-06-15 21:44:32 +0000
committerQMK Bot <hello@qmk.fm>2022-06-15 21:44:32 +0000
commit589bdedc470975406ddc0b0ce1034ecd44cd3f00 (patch)
tree1d5a9a05cb5e04eb574f19940fe955f2153d0a54 /lib
parent6e10a8017447df7624e02a9575d8bda355e2f255 (diff)
parentd3dfa83b4069507df5e8e36def33826a269cd720 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib')
-rwxr-xr-xlib/python/qmk/cli/compile.py5
-rw-r--r--lib/python/qmk/cli/flash.py5
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/python/qmk/cli/compile.py b/lib/python/qmk/cli/compile.py
index acbd778649..95118e6687 100755
--- a/lib/python/qmk/cli/compile.py
+++ b/lib/python/qmk/cli/compile.py
@@ -32,8 +32,9 @@ def compile(cli):
32 If a keyboard and keymap are provided this command will build a firmware based on that. 32 If a keyboard and keymap are provided this command will build a firmware based on that.
33 """ 33 """
34 if cli.args.clean and not cli.args.filename and not cli.args.dry_run: 34 if cli.args.clean and not cli.args.filename and not cli.args.dry_run:
35 command = create_make_command(cli.config.compile.keyboard, cli.config.compile.keymap, 'clean') 35 if cli.config.compile.keyboard and cli.config.compile.keymap:
36 cli.run(command, capture_output=False, stdin=DEVNULL) 36 command = create_make_command(cli.config.compile.keyboard, cli.config.compile.keymap, 'clean')
37 cli.run(command, capture_output=False, stdin=DEVNULL)
37 38
38 # Build the environment vars 39 # Build the environment vars
39 envs = {} 40 envs = {}
diff --git a/lib/python/qmk/cli/flash.py b/lib/python/qmk/cli/flash.py
index 3ff4a318df..ebe739c50e 100644
--- a/lib/python/qmk/cli/flash.py
+++ b/lib/python/qmk/cli/flash.py
@@ -61,8 +61,9 @@ def flash(cli):
61 If bootloader is omitted the make system will use the configured bootloader for that keyboard. 61 If bootloader is omitted the make system will use the configured bootloader for that keyboard.
62 """ 62 """
63 if cli.args.clean and not cli.args.filename and not cli.args.dry_run: 63 if cli.args.clean and not cli.args.filename and not cli.args.dry_run:
64 command = create_make_command(cli.config.flash.keyboard, cli.config.flash.keymap, 'clean') 64 if cli.config.flash.keyboard and cli.config.flash.keymap:
65 cli.run(command, capture_output=False, stdin=DEVNULL) 65 command = create_make_command(cli.config.flash.keyboard, cli.config.flash.keymap, 'clean')
66 cli.run(command, capture_output=False, stdin=DEVNULL)
66 67
67 # Build the environment vars 68 # Build the environment vars
68 envs = {} 69 envs = {}