Rate This Document
Findability
Accuracy
Completeness
Readability

Downloading Source Code of Mesa, LLVM, libdrm, libva, and Media

  1. Create a sourcecode directory in the user directory and grant the read, write, and execute permissions to the directory owner.
    1
    2
    mkdir ~/sourcecode
    chmod -R 700 ~/sourcecode
    
  2. Download the Mesa source code and copy it to the aosp/external directory.
    Download the source package according to Software Environment, upload the package to the /root/sourcecode directory, and decompress the package. Then rename the extracted file and copy it to the aosp/external directory.
    1
    2
    3
    4
    cd ~/sourcecode
    tar xvf mesa-22.1.7.tar.xz
    mv mesa-22.1.7 mesa
    cp -r ./mesa ~/aosp/external/
    
  3. Download the LLVM source package, copy it to the aosp/external directory, and rename the package to llvm70.
    Download the source package according to Software Environment, upload the package to the /root/sourcecode directory, and decompress the package. Then rename the extracted file and copy it to the aosp/external directory.
    1
    2
    3
    4
    cd ~/sourcecode
    tar xvf llvm-12.0.1.src.tar.xz
    mv llvm-12.0.1.src llvm70
    cp -r ./llvm70 ~/aosp/external/
    
  4. Download the libdrm source package, copy it to the aosp/external directory, and rename the package to libdrm.
    Download the source package according to Software Environment, upload the package to the /root/sourcecode directory, and decompress the package. Then rename the extracted file and copy it to the aosp/external directory.
    1
    2
    3
    4
    cd ~/sourcecode
    unzip drm-libdrm-2.4.111.zip
    mv drm-libdrm-2.4.111 libdrm
    cp -r ./libdrm ~/aosp/external/
    
  5. Download the libva source package, copy it to the aosp/external directory, and rename the package to libva.
    Download the source package according to Software Environment, upload the package to the /root/sourcecode directory, and decompress the package. Then rename the extracted file and copy it to the aosp/external directory.
    1
    2
    3
    4
    cd ~/sourcecode
    tar xvf libva-2.14.0.tar.gz
    mv libva-2.14.0 libva
    cp -r ./libva ~/aosp/external/
    
  6. Download the Media source code and copy it to the aosp/external directory.
    Download the ZIP source package according to Software Environment, upload the package to the /root/sourcecode directory, and decompress the package. Then copy the following content to the aosp/external directory.
    1
    2
    3
    4
    cd ~/sourcecode
    unzip media-main.zip
    cp -r ./media-main/video_decoder ~/aosp/external/
    cp -r ./media-main/vendor ~/aosp/external/