Downloading Source Code of Mesa, LLVM, libdrm, libva, and Media
- 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
- 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/
- 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/
- 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/
- 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/
- 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/
Parent topic: Compiling the AOSP Source Code and Creating an Image