diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-11-30 02:05:29 +0100 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-01 15:13:14 +0100 |
commit | 67126965ee0856f0d1cdb10792a36eaf4b2f13c0 (patch) | |
tree | 95e95e7a7969d0faaf7c6bd5e13ad180a96e587f /scripts | |
parent | kbuild: remove trailing semicolon from cmd_* passed to if_changed_rule (diff) | |
download | linux-67126965ee0856f0d1cdb10792a36eaf4b2f13c0.tar.xz linux-67126965ee0856f0d1cdb10792a36eaf4b2f13c0.zip |
kbuild: refactor if_changed
'@set -e; $(echo-cmd) $(cmd_$(1)' can be replaced with '$(cmd)'.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index ba297fdd7c52..87e188609ef7 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -251,8 +251,7 @@ any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^) # Execute command if command has changed or prerequisite(s) are updated. if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ - @set -e; \ - $(echo-cmd) $(cmd_$(1)); \ + $(cmd); \ printf '%s\n' 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd, @:) # Execute the command and also postprocess generated .d dependencies file. |