Scanning the Source Code
Prerequisites
- The Porting Advisor has been installed.
- If you have installed the tool using a compressed package, decompress the package and switch to the tool directory. Then run the command in ./ mode, for example, ./devkit porting -h. If you have installed the tool using an RPM package, run devkit porting -h. This section uses RPM packages as an example.
- An SSH remote login tool has been installed on the local PC.
Procedure
- Obtain the source package smartdenovo-master.zip from GitHub.
- Upload the source package to the user-defined directory (for example, /home/devkit_demo) on the Kunpeng server where the Kunpeng DevKit CLI is deployed. Then extract the package.
cd /home/devkit_demo/ && unzip smartdenovo-master.zip
- Use the DevKit CLI to scan the uploaded source package.
devkit porting src-mig -i /home/devkit_demo/smartdenovo-master -b make -c make
The following information is displayed. The tool generates JSON, CSV, HTML, and .patch reports.

You can directly use the .patch file generated by the tool to apply source code modifications to source files. For details, see Source Code SQL Writeback Patch.
- View the source code porting report (HTML format).Figure 1 Porting report
Parent topic: Porting Source Code