Contents

Switch to dark mode

Source Changes Do Not Trigger a Rebuild ​

Verify that the modified files live under kernel_dir or external_module_root. Only extra build inputs outside those directories need to be declared in srcs.

Avoid expanding the entire tree with srcs: ["**/*"], as it increases build-graph generation overhead.

External Module Build Failure ​

Check that external_module_root and external_modules paths are accurate. If a module should be built with the main kernel's Kbuild rather than its own Makefile, append :kbuild:

Android.bp
external_modules: ["vendor/example:kbuild"],

Module Not Installed or Not Loaded ​

  • Not installed: check the partition's install list.
  • Installed but not loaded: check the load list, blocklist, and boot logs.
  • Build reports load list is not in install list: add the required module to that partition's install list.

The install list controls what is installed; the load list controls what is loaded. auto_collect_deps only adds dependencies for installed modules.

DTB / DTBO Build Failure ​

Confirm the output is enabled and that target and input_globs match what the kernel actually produces. When using qcom_merge, both DTB and DTBO must be enabled.

Unexpected Kernel Configuration ​

Inspect the final `.config` first

Kconfig default resolution can alter the final result; reading only the defconfig or fragments cannot show the effective configuration.