Downloading Source Code of Mesa, LLVM, libdrm, libva, and Media
- Create a sourcecode directory in the user directory.
1 2
# mkdir ~/sourcecode # chmod -R 700 ~/sourcecode
- Download Mesa 22.1.7 source code and copy it to the aosp/external directory.Download the source package based on 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/
- Download LLVM 12.0.1 source package, copy it to the aosp/external directory, and rename the package to llvm70.Download the source package based on 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/
- Download libdrm 2.4.111 source package, copy it to the aosp/external directory, and rename the package to libdrm.Download the source package based on 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/
- Download libva 2.14.0 source package, copy it to the aosp/external directory, and rename the package to libva.Download the source package based on 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/
- Download Media source code and copy it to the aosp/external directory.Download the ZIP source package based on 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/
Parent topic: Compiling the AOSP Source Code and Creating an Image