diff --git a/lib/python/qmk/build_targets.py b/lib/python/qmk/build_targets.py index 14e6a989a3b3..a05d9a33de99 100644 --- a/lib/python/qmk/build_targets.py +++ b/lib/python/qmk/build_targets.py @@ -122,8 +122,10 @@ def prepare_build(self, build_target: str = None, dry_run: bool = False, **env_v def compile_command(self, build_target: str = None, dry_run: bool = False, **env_vars) -> List[str]: compile_args = self._common_make_args(dry_run=dry_run, build_target=build_target) + for key, value in env_vars.items(): compile_args.append(f'{key}={value}') + return compile_args @@ -162,7 +164,8 @@ def prepare_build(self, build_target: str = None, dry_run: bool = False, **env_v if old_content == new_content: new_content = None - # Write the keymap.json file if different + # Write the keymap.json file if different so timestamps are only updated + # if the content changes -- running `make` won't treat it as modified. if new_content: self._keymap_json.write_text(new_content, encoding='utf-8')