kernel tree, unless --confdir option is specified, in which case the defconfig
files will be searched for only in the specified directory.
+Several static checking utilities can be enabled to provide enhanced
+information, if desired. These include sparse, smatch, cppcheck, and
+coccinelle. In addition scripts/checkpatch.pl is run if found in the project
+tree. You can disable a checker with --no[checker] or enable it with
+--[checker]. The last provided option on the command line wins, and supersedes
+other settings.
+
Options:
-j, --jobs=N allow to run N jobs simultaneously (default is 1);
-c, --commit-id=ID the commit id to test against (default is the head of
stand-alone defconfig files instead;
-p, --preserve preserve all the temporary files - do not clean up;
--bisectability test bisectability;
- --sparse check with sparse while building;
- --smatch check with smatch while building;
- --cppcheck check with cppcheck while building;
- --coccinelle check with coccinelle (spatch) while building;
- --checkpatch run scripts/checkpatch.pl, if found in the project;
+ --[no]sparse check with sparse while building;
+ --[no]smatch check with smatch while building;
+ --[no]cppcheck check with cppcheck while building;
+ --[no]coccinelle check with coccinelle (spatch) while building;
+ --[no]checkpatch run scripts/checkpatch.pl, if found in the project;
-Q --quick-fixes=F sometimes it is necessary to carry out-of-tree patches
like quick build fixes and this option allows to pass
an mbox file with quick fixes which will be applied
smatch=
cppcheck=
coccinelle=
-checkpatch=
+checkpatch="yes" # Keep enabled by default for backwards compatibility
quick_fixes=
targets="all"
keywords=
coccinelle="yes"
program_required "spatch" "Usually Linux distribution provide a 'spatch' or 'coccinelle' package"
;;
+ --checkpatch)
+ checkpatch="yes"
+ ;;
+ --nosparse)
+ sparse=
+ ;;
+ --nosmatch)
+ smatch=
+ ;;
+ --nocppcheck)
+ cppcheck=
+ ;;
+ --nococcinelle)
+ coccinelle=
+ ;;
+ --nocheckpatch)
+ checkpatch=
+ ;;
-Q|--quick-fixes)
quick_fixes="$(opt_check_read "$1" "$2")"
shift
targets="$2"
shift
;;
- --checkpatch)
- checkpatch="yes"
- ;;
-K|--keywords)
keywords="$(opt_check_read "$1" "$2")"
shift
smatch=
cppcheck=
coccinelle=
-checkpatch=
+checkpatch= # Note, checkpatch is enabled by default
[ "$pcfg_bisectability" != "1" ] || bisectability="--bisectability"
[ "$pcfg_sparse" != "1" ] || sparse="--sparse"
[ "$pcfg_smatch" != "1" ] || smatch="--smatch"
[ "$pcfg_cppcheck" != "1" ] || cppcheck="--cppcheck"
[ "$pcfg_coccinelle" != "1" ] || coccinelle="--coccinelle"
-[ "$pcfg_checkpatch" != "1" ] || checkpatch="--checkpatch"
+[ "$pcfg_checkpatch" = "1" ] || checkpatch="--nocheckpatch"
# Create the Cc list for replies that we'll be sending
if [ "$pcfg_reply_to_all" = "1" ]; then