Command Parameter Description
The tool analyzes the content in Makefile and CMakeLists.txt that can be replaced with content in the Kunpeng library, and provides replacement suggestions and function repair.
Command Function
Displays all command parameters used for build affinity.
Syntax
devkit advisor constr-check -h
Example
Run the following command to query the parameter descriptions of all commands.
devkit advisor constr-check -h
The command output is as follows:
OVERVIEW
Run this command to analyze the content in Makefile and CMakeLists.txt that can be replaced with content in the Kunpeng library, and provides replacement suggestions and function repair.
USAGE
devkit advisor constr-check {-i INPUT_PATH | --input INPUT_PATH} {-c COMMAND | --cmd COMMAND} [-o OUTPUT_PATH | --output OUTPUT_PATH] [-b {make,cmake} | --build-tool {make,cmake}] [-r {all,json,html,csv} | --report-type {all,json,html,csv}] [-l {0,1,2,3} | --log-level {0,1,2,3}] [--set-timeout TIMEOUT]
OPTIONS
-i, --input INPUT_PATH
[Mandatory option] Specifies the folder or package path of the source code to be scanned.
-c, --cmd COMMAND
[Mandatory option] Specifies the build command of the source code.
-o, --output OUTPUT_PATH
Specify the path for storing the scan report and the file name. By default, the file is stored in the current path(pwd) and its name is in the format of function name_timestamp.
-b, --build-tool {make,cmake}
Specify the building tool. The default value is make.
-l, --log-level {0,1,2,3}
Specifies the log level of the current task, 0(DEBUG) | 1(INFO) | 2(WARNING) | 3(ERROR). The default value is 1(INFO).
-r, --report-type {all,json,html,csv}
Specify the report type for the scan report. The default value is all.
--set-timeout <min>
Specifies the timeout period of a task. By default, the timeout period is not set.
EXAMPLE
# Scan a project and generate scanning reports.
devkit advisor constr-check -i /home/advisor/project -b make -c 'make'
"
Parent topic: Build Affinity