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

Compilation

  1. Use an SSH tool to remotely log in to the server as the root user. Run the following command to go to the directory where the source code is stored:
    1
    cd /opt/DevKit/workspace/devadmin/porting/sourcecode/code
    

    If the Kunpeng DevKit is installed on the x86 platform, transfer the modified source code to the Kunpeng platform and go to the source code directory.

  2. After the make command is executed, an error is reported. See Figure 1.
    Figure 1 Error
    Modify the ksw.h file in /opt/DevKit/workspace/devadmin/porting/sourcecode/code/.

    emmintrin.h is the system header file of the x86 platform. The Kunpeng platform does not have this system header file. If the Kunpeng DevKit is installed on the x86 platform, replace the path with the actual source code path.

    Run the following command to open the file:

    1
    vi /opt/DevKit/workspace/devadmin/porting/sourcecode/code/ksw.h
    

    Change #include <emmintrin.h> in line 3 to the content shown in Figure 2.

    Figure 2 Modified code
  3. Run the make command again. The compilation is complete.
    Figure 3 Compilation completed