diff options
| author | Cao jin <caoj.fnst@cn.fujitsu.com> | 2017-08-01 22:31:06 -0400 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-08-09 11:58:20 -0400 |
| commit | 312a3d0918bb7d65862fbbd3e2f2f4630e4d6f56 (patch) | |
| tree | 6bba3a4b94ad94a1c8eddd11934e5649a89d5a73 /scripts/Kbuild.include | |
| parent | cb87481ee89dbd6609e227afbf64900fb4e5c930 (diff) | |
kbuild: trivial cleanups on the comments
This is a bunch of trivial fixes and cleanups.
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Kbuild.include')
| -rw-r--r-- | scripts/Kbuild.include | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index dd8e2dde0b34..9ffd3dda3889 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -85,8 +85,8 @@ TMPOUT := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/) | |||
| 85 | 85 | ||
| 86 | # try-run | 86 | # try-run |
| 87 | # Usage: option = $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise) | 87 | # Usage: option = $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise) |
| 88 | # Exit code chooses option. "$$TMP" is can be used as temporary file and | 88 | # Exit code chooses option. "$$TMP" serves as a temporary file and is |
| 89 | # is automatically cleaned up. | 89 | # automatically cleaned up. |
| 90 | try-run = $(shell set -e; \ | 90 | try-run = $(shell set -e; \ |
| 91 | TMP="$(TMPOUT).$$$$.tmp"; \ | 91 | TMP="$(TMPOUT).$$$$.tmp"; \ |
| 92 | TMPO="$(TMPOUT).$$$$.o"; \ | 92 | TMPO="$(TMPOUT).$$$$.o"; \ |
| @@ -261,7 +261,6 @@ make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1))))) | |||
| 261 | any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^) | 261 | any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^) |
| 262 | 262 | ||
| 263 | # Execute command if command has changed or prerequisite(s) are updated. | 263 | # Execute command if command has changed or prerequisite(s) are updated. |
| 264 | # | ||
| 265 | if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ | 264 | if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ |
| 266 | @set -e; \ | 265 | @set -e; \ |
| 267 | $(echo-cmd) $(cmd_$(1)); \ | 266 | $(echo-cmd) $(cmd_$(1)); \ |
| @@ -315,7 +314,7 @@ if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \ | |||
| 315 | $(rule_$(1)), @:) | 314 | $(rule_$(1)), @:) |
| 316 | 315 | ||
| 317 | ### | 316 | ### |
| 318 | # why - tell why a a target got build | 317 | # why - tell why a target got built |
| 319 | # enabled by make V=2 | 318 | # enabled by make V=2 |
| 320 | # Output (listed in the order they are checked): | 319 | # Output (listed in the order they are checked): |
| 321 | # (1) - due to target is PHONY | 320 | # (1) - due to target is PHONY |
