This is a bunch of trivial fixes and cleanups.
Showing the changes to scripts (3 of 4 files). Show all
Unified · Split
| @@ -85,8 +85,8 @@ TMPOUT := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/) · 84 unmodified lines | ||
| 85 | 85 | |
| 86 | 86 | # try-run |
| 87 | 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 | |
| 89 | −# is automatically cleaned up. | |
| 88 | +# Exit code chooses option. "$$TMP" serves as a temporary file and is | |
| 89 | +# automatically cleaned up. | |
| 90 | 90 | try-run = $(shell set -e; \ |
| 91 | 91 | TMP="$(TMPOUT).$$$$.tmp"; \ |
| 92 | 92 | TMPO="$(TMPOUT).$$$$.o"; \ |
| @@ -261,7 +261,6 @@ make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1))))) · 168 unmodified lines | ||
| 261 | 261 | any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^) |
| 262 | 262 | |
| 263 | 263 | # Execute command if command has changed or prerequisite(s) are updated. |
| 264 | −# | |
| 265 | 264 | if_changed = $(if $(strip $(any-prereq) $(arg-check)), \ |
| 266 | 265 | @set -e; \ |
| 267 | 266 | $(echo-cmd) $(cmd_$(1)); \ |
| @@ -315,7 +314,7 @@ if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \ · 47 unmodified lines | ||
| 315 | 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 | 318 | # enabled by make V=2 |
| 320 | 319 | # Output (listed in the order they are checked): |
| 321 | 320 | # (1) - due to target is PHONY |
| @@ -229,8 +229,8 @@ ifeq ("$(origin RECORDMCOUNT_WARN)", "command line") · 228 unmodified lines | ||
| 229 | 229 | endif |
| 230 | 230 | # Due to recursion, we must skip empty.o. |
| 231 | 231 | # The empty.o file is created in the make process in order to determine |
| 232 | −# the target endianness and word size. It is made before all other C | |
| 233 | −# files, including recordmcount. | |
| 232 | +# the target endianness and word size. It is made before all other C | |
| 233 | +# files, including recordmcount. | |
| 234 | 234 | sub_cmd_record_mcount = \ |
| 235 | 235 | if [ $(@) != "scripts/mod/empty.o" ]; then \ |
| 236 | 236 | $(objtree)/scripts/recordmcount $(RECORDMCOUNT_FLAGS) "$(@)"; \ |
| @@ -245,13 +245,13 @@ sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH · 8 unmodified lines | ||
| 245 | 245 | "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ |
| 246 | 246 | "$(if $(part-of-module),1,0)" "$(@)"; |
| 247 | 247 | recordmcount_source := $(srctree)/scripts/recordmcount.pl |
| 248 | −endif | |
| 248 | +endif # BUILD_C_RECORDMCOUNT | |
| 249 | 249 | cmd_record_mcount = \ |
| 250 | 250 | if [ "$(findstring $(CC_FLAGS_FTRACE),$(_c_flags))" = \ |
| 251 | 251 | "$(CC_FLAGS_FTRACE)" ]; then \ |
| 252 | 252 | $(sub_cmd_record_mcount) \ |
| 253 | 253 | fi; |
| 254 | −endif | |
| 254 | +endif # CONFIG_FTRACE_MCOUNT_RECORD | |
| 255 | 255 | |
| 256 | 256 | ifdef CONFIG_STACK_VALIDATION |
| 257 | 257 | ifneq ($(SKIP_STACK_VALIDATION),1) |
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | ### |
| 2 | −# Makefile.basic lists the most basic programs used during the build process. | |
| 2 | +# This Makefile lists the most basic programs used during the build process. | |
| 3 | 3 | # The programs listed herein are what are needed to do the basic stuff, |
| 4 | 4 | # such as fix file dependencies. |
| 5 | 5 | # This initial step is needed to avoid files to be recompiled |