aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Kbuild.include
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r--scripts/Kbuild.include5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index b2ab2a92a375..80ca538bfba9 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -256,10 +256,13 @@ if_changed = $(if $(strip $(any-prereq) $(arg-check)), \
256# Execute the command and also postprocess generated .d dependencies file. 256# Execute the command and also postprocess generated .d dependencies file.
257if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ 257if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \
258 @set -e; \ 258 @set -e; \
259 $(cmd_and_fixdep), @:)
260
261cmd_and_fixdep = \
259 $(echo-cmd) $(cmd_$(1)); \ 262 $(echo-cmd) $(cmd_$(1)); \
260 scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ 263 scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\
261 rm -f $(depfile); \ 264 rm -f $(depfile); \
262 mv -f $(dot-target).tmp $(dot-target).cmd, @:) 265 mv -f $(dot-target).tmp $(dot-target).cmd;
263 266
264# Usage: $(call if_changed_rule,foo) 267# Usage: $(call if_changed_rule,foo)
265# Will check if $(cmd_foo) or any of the prerequisites changed, 268# Will check if $(cmd_foo) or any of the prerequisites changed,