diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2025-05-20 08:21:22 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-29 18:42:37 -0600 |
commit | cc571e29a8ecbba909cbb04ba062db026f70ae8b (patch) | |
tree | eaf0dc53ae3aefbbeeaa9620865f5fde8c6c8340 /scripts/Kbuild.include | |
parent | 47a4770c7a2f6dab7ada9ba77b12bd41939db551 (diff) |
kbuild: let fixdep directly write to .*.cmd files
Backport from kernel
commit 392885ee82d3 ("kbuild: let fixdep directly write to .*.cmd files")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r-- | scripts/Kbuild.include | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 2ef687ea895..6ef66c451eb 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -274,9 +274,8 @@ if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ cmd_and_fixdep = \ $(echo-cmd) $(cmd_$(1)); \ - scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ - rm -f $(depfile); \ - mv -f $(dot-target).tmp $(dot-target).cmd; + scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).cmd;\ + rm -f $(depfile) # Usage: $(call if_changed_rule,foo) # Will check if $(cmd_foo) or any of the prerequisites changed, |