diff options
Diffstat (limited to 'scripts/Kbuild.include')
| -rw-r--r-- | scripts/Kbuild.include | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 1db6d73c8dd2..b2ab2a92a375 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -251,7 +251,7 @@ any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^) | |||
| 251 | if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ | 251 | if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ |
| 252 | @set -e; \ | 252 | @set -e; \ |
| 253 | $(echo-cmd) $(cmd_$(1)); \ | 253 | $(echo-cmd) $(cmd_$(1)); \ |
| 254 | printf '%s\n' 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd) | 254 | printf '%s\n' 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd, @:) |
| 255 | 255 | ||
| 256 | # Execute the command and also postprocess generated .d dependencies file. | 256 | # Execute the command and also postprocess generated .d dependencies file. |
| 257 | if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ | 257 | if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ |
| @@ -259,14 +259,14 @@ if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \ | |||
| 259 | $(echo-cmd) $(cmd_$(1)); \ | 259 | $(echo-cmd) $(cmd_$(1)); \ |
| 260 | scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ | 260 | scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ |
| 261 | rm -f $(depfile); \ | 261 | rm -f $(depfile); \ |
| 262 | mv -f $(dot-target).tmp $(dot-target).cmd) | 262 | mv -f $(dot-target).tmp $(dot-target).cmd, @:) |
| 263 | 263 | ||
| 264 | # Usage: $(call if_changed_rule,foo) | 264 | # Usage: $(call if_changed_rule,foo) |
| 265 | # Will check if $(cmd_foo) or any of the prerequisites changed, | 265 | # Will check if $(cmd_foo) or any of the prerequisites changed, |
| 266 | # and if so will execute $(rule_foo). | 266 | # and if so will execute $(rule_foo). |
| 267 | if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \ | 267 | if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \ |
| 268 | @set -e; \ | 268 | @set -e; \ |
| 269 | $(rule_$(1))) | 269 | $(rule_$(1)), @:) |
| 270 | 270 | ||
| 271 | ### | 271 | ### |
| 272 | # why - tell why a a target got build | 272 | # why - tell why a a target got build |
