Contents

Switch to dark mode

Generating the Android build graph includes a serial Kati step. Kati evaluates Make build rules and emits corresponding Ninja rules.

LineageOS noted in its 23.2 release blog:

LineageOS is now nearly Android.mk free! Google announced their move from make to soong many years ago, pushing developers to migrate from Android.mk to Android.bp, and has started blocking Android.mk in many locations of the source tree.

However, several core build components still depended on Make, leaving Kati unavoidable in the build pipeline.

uwuAOSP finishes this final migration step so modern devices can skip Kati for the main build graph. In recorded tests, this cuts build-graph generation time nearly in half.

Product configuration still uses Make

Soong-only skips Kati for the main build graph; BoardConfig and product Makefiles still use Make.

Migrating a Device ​

Devices typically need to migrate:

  • uwu_kernel: replaces the legacy kernel build task.
  • uwu_prebuilt_image: replaces Make-level $(call add-radio-file, ...).

uwuCLI provides migration helpers for both. Run uwu from the source root and select product-tree or kernel migration from the menu. If the device uses add-radio-file for firmware images, product-tree migration handles the conversion.

After migrating and running lunch, execute:

bash
uwu inspect soong-only

When the output reports the following, no selected product packages still depend on Android.mk:

text
Conclusion
--------------------
  READY
  No selected package still depends on Android.mk.

If remaining items are reported, address each path listed by the tool.

Enabling Soong-only ​

Enable temporarily:

bash
export SOONG_ONLY=true

Or enable in product configuration:

make
PRODUCT_SOONG_ONLY := true

Revert a temporary setting with unset SOONG_ONLY; revert the product setting in the product Makefile.

Applicability ​

A-only devices are not yet supported

These devices depend on //bootable/deprecated-ota:updater, which has not been migrated yet. Continue using the standard build flow.

If other unmigrated components remain, continue using the standard build flow as well.

Devices verified to build and boot:

  • OnePlus 6T (fajita)
  • OnePlus Ace 3 / 12R (aston(c))