70bbd75ca61b92f3800b1153a8d97222ea39650a
Device specific configuration to build AOSP Android 13 for Raspberry Pi 4.
Wiki:
- TODO
Issues:
How to build:
-
Establish Android build environment and install repo.
-
Install additional packages (TODO: possibly non-exhaustive):
sudo apt-get install bc coreutils dosfstools e2fsprogs fdisk kpartx mtools ninja-build
sudo snap install meson
pip3 install ply
- Initialize repo:
repo init -u https://android.googlesource.com/platform/manifest -b android-13.0.0_r6
curl --create-dirs -L -o .repo/local_manifests/manifest_brcm_rpi4.xml -O -L https://raw.githubusercontent.com/raspberry-vanilla/android_local_manifest/android-13.0/manifest_brcm_rpi4.xml
You can also reduce download size by creating a shallow clone and removing unneeded projects (optional):
repo init -u https://android.googlesource.com/platform/manifest -b android-13.0.0_r6 --depth=1
curl --create-dirs -L -o .repo/local_manifests/remove_projects.xml -O -L https://raw.githubusercontent.com/raspberry-vanilla/android_local_manifest/android-13.0/remove_projects.xml
- Sync source code:
repo sync
- Compile:
. build/envsetup.sh
lunch aosp_rpi4-userdebug
make bootimage systemimage vendorimage -j$(nproc)
- Make flashable image:
./rpi4-mkimg.sh
Also look into Linux kernel build instructions.
Description