我要评分
获取效率
正确性
完整性
易理解

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/DevKit is the default installation directory of the tool. The following uses this directory as an example. Replace it with the actual directory.
  • To perform a 64-bit running mode check on the WebUI, you need to manually upload files or compressed packages. In the IDE, you can simply scan local projects to run the check.

Procedure

  1. On the left pane of the page, choose Affinity Analyzer > Build Affinity, and click to create a task. See Figure 1.
    Figure 1 Build affinity
    Table 1 Parameters for build affinity

    Parameter

    Description

    Source File Path

    Set this parameter using either of the following methods:

    • If you want to use uploaded source code, click the text box and select a source code path from the drop-down list or manually enter a source code path.
    • Click Upload on the right to upload the package or folder. (The package is automatically decompressed during the upload.)
    NOTE:
    • Only TAR, TAR.BZ, TAR.BZ2, TAR.GZ, TAR.XZ, TBZ, TBZ2, TGZ, TXZ and ZIP packages can be uploaded. Only one package can be uploaded at a time. The source package cannot exceed 1 GB, and the extracted files cannot take up more than half of the remaining drive space.
    • Only one folder can be uploaded at a time. The size of the folder must be less than or equal to half of the remaining drive space.
    • Before manually uploading a software package, check whether the target directory exists. If it does not exist, create such a directory and grant the read, write, and execute permissions to the devkit user.

    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.

  2. Click Check. After the analysis is complete, the build affinity analysis report page is displayed. See Figure 2.
    Figure 2 Build affinity analysis report
    • Click View. The file content page is displayed. See Figure 3.
      Figure 3 Makefile content
    • 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.