Build Affinity
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.
Prerequisites
You have logged in to the Kunpeng DevKit.
- /opt is the default installation directory of the tool. The following uses this directory as an example. Replace it with the actual directory.
- On the WebUI, this feature requires uploading the files or compressed package. In the IDE, the tool plugin can scan local projects. If the source code is included in a compressed package, decompress the package and select the decompressed folder.
Procedure
- On the left pane of the page, choose Affinity Analyzer > Build Affinity, and click
to create a task. See Figure 1.
Table 1 Parameters for build affinity Parameter
Description
Source File Path
Set this parameter using either of the following methods:
- Enter the absolute path of the source file.
- Click Select Folder on the right and select the folder for storing the source file.
Build Tool
Build tool to be used. The options are:
- make
- cmake
Compile Command
Command to be used to compile the source code.
The compile command varies according to the build tool configuration file. For details, see Identifying Compile Commands Using the Build Tool Configuration File.
- Click Check. After the analysis is complete, the build affinity analysis report page is displayed. See Figure 2.
- Click View. The file content page is displayed. See Figure 3.
- Click Obtaining Resources to go to the page for obtaining required content in the Kunpeng library.
- The tool supports concurrent running of multiple build affinity analysis tasks.
- To cancel a task, click Close during the task running process.
Parent topic: Affinity Analyzer


