-
Establish Android build environment and install repo.
-
Initialize repo:
repo init -u https://android.googlesource.com/kernel/manifest -b common-android15-6.6-lts
curl -o .repo/local_manifests/manifest_brcm_rpi.xml -L https://raw.githubusercontent.com/raspberry-vanilla/android_kernel_manifest/android-15.0/manifest_brcm_rpi.xml --create-dirs
- Sync source code:
repo sync
- Compile:
Raspberry Pi 4:
tools/bazel build --config=fast --config=stamp //common:rpi4
Raspberry Pi 5:
tools/bazel build --config=fast --config=stamp //common:rpi5
Compiled kernel Image, dtbs, and overlays can be found in bazel-bin/common/rpi4/arch/arm64/boot
or bazel-bin/common/rpi5/arch/arm64/boot
directory.
Replace existing files in device/brcm/rpi4-kernel
or device/brcm/rpi5-kernel
directory of the Android source tree to include them in Android 14 build. You can also replace existing files in the boot partition of Raspberry Pi 4 or Raspberry Pi 5 Android 15 image.