Downloading Source Code of Mesa, LLVM, libdrm, libva, and Media
Mesa, LLVM, and libdrm are used during the compilation of the Kbox Android image. Download their source code by referring to this section.
- 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-13.0.1.src.tar.xz mv llvm-13.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 vmi-CloudPhone.zip software package based on Software Environment, decompress it, and copy the specified folders to the aosp/external directory.Upload the extracted Media ZIP source package to the /root/sourcecode directory, decompress the package, and copy the specified folders to the aosp/external directory.
1 2 3 4
cd ~/sourcecode unzip vmi-CloudPhone.zip cp -r ./vmi-CloudPhone/CloudPhoneService/VideoEngine/Media/video_decoder ~/aosp/external/ cp -r ./vmi-CloudPhone/CloudPhoneService/VideoEngine/Media/vendor ~/aosp/external/
Parent topic: Compiling the AOSP Source Code and Creating an Image