Skip to content

Commit 312a3d0

Browse files
Cao jinmasahir0y
authored andcommitted
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>
1 parent cb87481 commit 312a3d0

4 files changed

Lines changed: 13 additions & 14 deletions

File tree

‎Makefile‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn \
442442
# ===========================================================================
443443
# Rules shared between *config targets and build targets
444444

445-
# Basic helpers built in scripts/
445+
# Basic helpers built in scripts/basic/
446446
PHONY += scripts_basic
447447
scripts_basic:
448448
$(Q)$(MAKE) $(build)=scripts/basic
@@ -505,7 +505,7 @@ ifeq ($(KBUILD_EXTMOD),)
505505
endif
506506
endif
507507
endif
508-
# install and module_install need also be processed one by one
508+
# install and modules_install need also be processed one by one
509509
ifneq ($(filter install,$(MAKECMDGOALS)),)
510510
ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
511511
mixed-targets := 1
@@ -964,7 +964,7 @@ export KBUILD_VMLINUX_MAIN := $(core-y) $(libs-y2) $(drivers-y) $(net-y) $(virt-
964964
export KBUILD_VMLINUX_LIBS := $(libs-y1)
965965
export KBUILD_LDS := arch/$(SRCARCH)/kernel/vmlinux.lds
966966
export LDFLAGS_vmlinux
967-
# used by scripts/pacmage/Makefile
967+
# used by scripts/package/Makefile
968968
export KBUILD_ALLDIRS := $(sort $(filter-out arch/%,$(vmlinux-alldirs)) arch Documentation include samples scripts tools)
969969

970970
vmlinux-deps := $(KBUILD_LDS) $(KBUILD_VMLINUX_INIT) $(KBUILD_VMLINUX_MAIN) $(KBUILD_VMLINUX_LIBS)
@@ -992,8 +992,8 @@ include/generated/autoksyms.h: FORCE
992992
ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink)
993993

994994
# Final link of vmlinux with optional arch pass after final link
995-
cmd_link-vmlinux = \
996-
$(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) ; \
995+
cmd_link-vmlinux = \
996+
$(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) ; \
997997
$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
998998

999999
vmlinux: scripts/link-vmlinux.sh vmlinux_prereq $(vmlinux-deps) FORCE

‎scripts/Kbuild.include‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ TMPOUT := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/)
8585

8686
# try-run
8787
# 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.
9090
try-run = $(shell set -e; \
9191
TMP="$(TMPOUT).$$$$.tmp"; \
9292
TMPO="$(TMPOUT).$$$$.o"; \
@@ -261,7 +261,6 @@ make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1)))))
261261
any-prereq = $(filter-out $(PHONY),$?) $(filter-out $(PHONY) $(wildcard $^),$^)
262262

263263
# Execute command if command has changed or prerequisite(s) are updated.
264-
#
265264
if_changed = $(if $(strip $(any-prereq) $(arg-check)), \
266265
@set -e; \
267266
$(echo-cmd) $(cmd_$(1)); \
@@ -315,7 +314,7 @@ if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \
315314
$(rule_$(1)), @:)
316315

317316
###
318-
# why - tell why a a target got build
317+
# why - tell why a target got built
319318
# enabled by make V=2
320319
# Output (listed in the order they are checked):
321320
# (1) - due to target is PHONY

‎scripts/Makefile.build‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ ifeq ("$(origin RECORDMCOUNT_WARN)", "command line")
229229
endif
230230
# Due to recursion, we must skip empty.o.
231231
# 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.
234234
sub_cmd_record_mcount = \
235235
if [ $(@) != "scripts/mod/empty.o" ]; then \
236236
$(objtree)/scripts/recordmcount $(RECORDMCOUNT_FLAGS) "$(@)"; \
@@ -245,13 +245,13 @@ sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH
245245
"$(LD)" "$(NM)" "$(RM)" "$(MV)" \
246246
"$(if $(part-of-module),1,0)" "$(@)";
247247
recordmcount_source := $(srctree)/scripts/recordmcount.pl
248-
endif
248+
endif # BUILD_C_RECORDMCOUNT
249249
cmd_record_mcount = \
250250
if [ "$(findstring $(CC_FLAGS_FTRACE),$(_c_flags))" = \
251251
"$(CC_FLAGS_FTRACE)" ]; then \
252252
$(sub_cmd_record_mcount) \
253253
fi;
254-
endif
254+
endif # CONFIG_FTRACE_MCOUNT_RECORD
255255

256256
ifdef CONFIG_STACK_VALIDATION
257257
ifneq ($(SKIP_STACK_VALIDATION),1)

‎scripts/basic/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###
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.
33
# The programs listed herein are what are needed to do the basic stuff,
44
# such as fix file dependencies.
55
# This initial step is needed to avoid files to be recompiled

0 commit comments

Comments
 (0)