├── manifest_brcm_rpi.xml └── README.md /manifest_brcm_rpi.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### How to build: 2 | 3 | 1. Establish [Android build environment](https://source.android.com/setup/initializing) and install [repo](https://source.android.com/docs/setup/develop#installing-repo). 4 | 5 | 2. Initialize repo: 6 | 7 | ``` 8 | repo init -u https://android.googlesource.com/kernel/manifest -b common-android16-6.12-lts 9 | curl -o .repo/local_manifests/manifest_brcm_rpi.xml -L https://raw.githubusercontent.com/raspberry-vanilla/android_kernel_manifest/android-16.0/manifest_brcm_rpi.xml --create-dirs 10 | ``` 11 | 12 | 3. Sync source code: 13 | 14 | ``` 15 | repo sync 16 | ``` 17 | 18 | 4. Compile: 19 | 20 | Raspberry Pi 4: 21 | ``` 22 | tools/bazel build --config=fast --config=stamp //common:rpi4 23 | ``` 24 | 25 | Raspberry Pi 5: 26 | ``` 27 | tools/bazel build --config=fast --config=stamp //common:rpi5 28 | ``` 29 | 30 | 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. 31 | 32 | Replace existing files in `device/brcm/rpi4-kernel` or `device/brcm/rpi5-kernel` directory of the Android source tree to include them in Android 16 build. You can also replace existing files in the boot partition of Raspberry Pi 4 or Raspberry Pi 5 Android 16 image. 33 | --------------------------------------------------------------------------------