diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index 09c4f597325d..738c6b36be6b 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py @@ -297,6 +297,8 @@ def do_compile(keyboard, keymap, parallel, target=None, filters=None, environmen # Compile the firmware, if we're able to if command == 'multiple': + cli.log.info('Building {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s', keyboard, keymap) + returncodes = [] for keyboard, keymap in keyboard_keymap_iter(keyboard, keymap, filters): command = create_make_command(keyboard, keymap, target=target, parallel=1, silent=multiple_compiles, **envs) @@ -317,6 +319,11 @@ def do_compile(keyboard, keymap, parallel, target=None, filters=None, environmen cli.echo('\tkeyboard: {fg_cyan}%s{fg_reset} keymap: {fg_cyan}%s', keyboard, keymap) elif command: + if target: + cli.log.info('Building {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s{fg_reset} and target {fg_cyan}%s', keyboard, keymap, target) + else: + cli.log.info('Building {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s', keyboard, keymap) + if _execute_compile(keyboard, keymap, command, target) != 0: print() cli.log.error('Could not compile all targets, look above this message for more details. Failing target(s):') @@ -340,10 +347,6 @@ def _execute_compile(keyboard, keymap, command, target, returncodes=None): cli.log.debug('Skipping keyboard %s, no %s keymap found.', keyboard, keymap) return 0 - if target: - cli.log.info('Building firmware for {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s{fg_reset} and target {fg_cyan}%s', keyboard, keymap, target) - else: - cli.log.info('Building firmware for {fg_cyan}%s{fg_reset} with keymap {fg_cyan}%s', keyboard, keymap) cli.log.debug('Running make command: {fg_blue}%s', ' '.join(command)) if not cli.args.dry_run: