Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

How to build

Austin Hornhead edited this page Oct 9, 2020 · 2 revisions

Building the custom kernel for whyred

If you want to build your own custom kernel with your configs, this shows you what you can configure.

Camera blobs

Kernel sources are unified for Xiaomi's older camera blobs as well as for newer camera blobs. We have two different configurations for it:

  • whyred_defconfig if using older camera blobs

  • whyred-newcam_defconfig if using newer camera blobs

    CONFIG_XIAOMI_NEW_CAMERA_BLOBS

is defined already so no need to do, just switch the defconfig file(above) in your BoardConfig.mk!

"y" for new camera blobs and "n" for old camera blobs.

  • V-tags are HMP builds and X-tags are EAS builds.

Further optimizations

Kernel supports LLVM Polly as well as LTO and can be enabled in the config with...

    CONFIG_LLVM_POLLY / CONFIG_LTO_CLANG / CONFIG_THINLTO.

❗ Note: LTO can significantly increase the compilation time so alternately you can try THIN LTO.