Search code examples
androidlinuxcompilationhalandroid-kernel

How to Re-build HAL in android?


I have made changes in device//manifest.xml and now i want to rebuild only boot.img and vendor.img.

Is there any way/command to build only HAL module in android ?

Thanks


Solution

  • You can build single modules or images by providing build targets to make.

    • Build the boot image: make bootimage
    • Build the vendor image: make vendorimage
      This will build the boot image as well.
    • Build a single HAL (e.g. the Power HAL): make [email protected]
      Note: This will not update the vendor.img.

    You can get a list of all known build targets with make modules.