Applying the ExaGear Transcoding Patch
Apply the ExaGear transcoding patch package into the AOSP source package.
- Create a dependency directory in the user directory. Decompress Kbox-AOSP11.zip and upload the patchForExagear directory in the Kbox-AOSP11 folder to the ~/dependency directory. Configure appropriate permissions on the uploaded files and directories. You are not advised to configure the write permission for other owner groups.
- Apply the ExaGear transcoding patch. Copy the ExaGear transcoding patch 0001-exagear-adapt-android-11.0.0_r48.patch to the AOSP source code directory and apply the patch.
1 2 3 4
cd ~/dependency/patchForExagear/guestOS/aosp11 cp 0001-exagear-adapt-android-11.0.0_r48.patch ~/aosp cd ~/aosp patch -p1 < 0001-exagear-adapt-android-11.0.0_r48.patch
- Upload the ExaGear transcoding package Exagear-ARM32-ARM64.tar.gz to ~/dependency. Configure appropriate permissions on the uploaded files and directories. You are not advised to configure the write permission for other owner groups.
- Decompress the patch package and adjust the permissions.
1 2 3 4
cd ~/dependency/ sudo tar -xzvf Exagear-ARM32-ARM64.tar.gz sudo chown -R root:root output sudo chmod -R 700 output
- Copy the preubt_a32a64_a64, preubt_a32a64_x64, and ubt_a32a64 files from ~/dependency/output to the ~/dependency/patchForExagear/guestOS/aosp11/vendor/huawei/exagear/prebuilts directory.
1 2
cd ~/dependency/output cp * ~/dependency/patchForExagear/guestOS/aosp11/vendor/huawei/exagear/prebuilts
- Copy the vendor directory to the aosp directory.
1 2
cd ~/dependency/patchForExagear/guestOS/aosp11 cp -r ./vendor ~/aosp/
Parent topic: Compiling the AOSP Source Code and Creating an Image