uwu_kernel is uwuAOSP's Soong module type for integrating kernel builds into Soong, replacing the legacy kernel build task.
uwu_kernel does not replace the kernel's own build system. Kbuild, Bazel, or other tools still build the kernel itself, while uwu_kernel connects the build invocation and its outputs to the Android build system.
Why uwu_kernel
The legacy kernel build task is one of the main blockers preventing standard devices from switching to Soong-only builds.
Legacy kernel module configuration scatters module installation targets and load lists across multiple Make variables and files with cross-references between them. uwu_kernel declares these directly in device configuration, separating which modules are installed into a partition from which ones are loaded.
Migration
Start with uwuCLI
uwuCLI reads existing device configuration, generates the corresponding uwu_kernel declaration, and reports items that cannot be converted automatically.
- Migration Guide: convert device configuration and hook into the build.
- Configuration Reference: common properties and output references for manual tuning.
- Troubleshooting: solutions for common build and module issues.
Verified Devices
Build and boot verified on:
| Device | Kernel | Type | Kernel build system |
|---|---|---|---|
OnePlus 6T (fajita) | 4.19 | non-GKI | Kbuild |
OnePlus Ace 3 / 12R (aston(c)) | 5.15 | GKI | Kbuild |
POCO F7 / Redmi Turbo 4 Pro (onyx) | 6.6 | GKI | Bazel |