Konsta f712f72a6e rename dav1d -> libdav1d
* Google has added option for using libdav1d for AV1 software decoding
  in future Android versions (excellent idea wherever they got it ;)).
* Rename the repo to follow AOSP naming convention.
2023-11-24 14:54:31 +02:00
2022-09-18 10:59:31 +03:00

Device specific configuration to build AOSP Android 12 for Raspberry Pi 4.


NOTE: Raspberry Vanilla android-12.1 branch is no longer maintained. Consider using newer AOSP versions.

How to build:

  1. Establish Android build environment and install repo.

  2. Install additional packages:

sudo apt-get install bc coreutils dosfstools e2fsprogs fdisk kpartx mtools ninja-build pkg-config python3-pip
sudo pip3 install meson mako jinja2 ply pyyaml
  1. Initialize repo:
repo init -u https://android.googlesource.com/platform/manifest -b android-12.1.0_r22
curl -o .repo/local_manifests/manifest_brcm_rpi4.xml -L https://raw.githubusercontent.com/raspberry-vanilla/android_local_manifest/android-12.1/manifest_brcm_rpi4.xml --create-dirs

Or optionally, you can reduce download size by creating a shallow clone and removing unneeded projects:

repo init -u https://android.googlesource.com/platform/manifest -b android-12.1.0_r22 --depth=1
curl -o .repo/local_manifests/manifest_brcm_rpi4.xml -L https://raw.githubusercontent.com/raspberry-vanilla/android_local_manifest/android-12.1/manifest_brcm_rpi4.xml --create-dirs
curl -o .repo/local_manifests/remove_projects.xml -L https://raw.githubusercontent.com/raspberry-vanilla/android_local_manifest/android-12.1/remove_projects.xml
  1. Sync source code:
repo sync
  1. Compile:
. build/envsetup.sh
lunch aosp_rpi4-userdebug
make bootimage systemimage vendorimage -j$(nproc)
  1. Make flashable image:
./rpi4-mkimg.sh

Also look into Linux kernel build instructions.


Issues:


Wiki:

Description
No description provided
Readme 159 KiB