kbuild: clarify "make C=" build option
Clarify the use of "make C=" in the top-level Makefile, and fix a typo in the Documentation file. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
e41217129c
commit
1c7bafe720
2 changed files with 13 additions and 7 deletions
|
@ -69,10 +69,10 @@ recompiled, or use "make C=2" to run sparse on the files whether they need to
|
||||||
be recompiled or not. The latter is a fast way to check the whole tree if you
|
be recompiled or not. The latter is a fast way to check the whole tree if you
|
||||||
have already built it.
|
have already built it.
|
||||||
|
|
||||||
The optional make variable CF can be used to pass arguments to sparse. The
|
The optional make variable CHECKFLAGS can be used to pass arguments to sparse.
|
||||||
build system passes -Wbitwise to sparse automatically. To perform endianness
|
The build system passes -Wbitwise to sparse automatically. To perform
|
||||||
checks, you may define __CHECK_ENDIAN__:
|
endianness checks, you may define __CHECK_ENDIAN__:
|
||||||
|
|
||||||
make C=2 CF="-D__CHECK_ENDIAN__"
|
make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__"
|
||||||
|
|
||||||
These checks are disabled by default as they generate a host of warnings.
|
These checks are disabled by default as they generate a host of warnings.
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -41,9 +41,15 @@ ifndef KBUILD_VERBOSE
|
||||||
KBUILD_VERBOSE = 0
|
KBUILD_VERBOSE = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Call checker as part of compilation of C files
|
# Call a source code checker (by default, "sparse") as part of the
|
||||||
# Use 'make C=1' to enable checking (sparse, by default)
|
# C compilation.
|
||||||
# Override with 'make C=1 CHECK=checker_executable CHECKFLAGS=....'
|
#
|
||||||
|
# Use 'make C=1' to enable checking of only re-compiled files.
|
||||||
|
# Use 'make C=2' to enable checking of *all* source files, regardless
|
||||||
|
# of whether they are re-compiled or not.
|
||||||
|
#
|
||||||
|
# See the file "Documentation/sparse.txt" for more details, including
|
||||||
|
# where to get the "sparse" utility.
|
||||||
|
|
||||||
ifdef C
|
ifdef C
|
||||||
ifeq ("$(origin C)", "command line")
|
ifeq ("$(origin C)", "command line")
|
||||||
|
|
Loading…
Reference in a new issue