Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Building

Shouko edited this page Jul 22, 2020 · 2 revisions

This guide will teach you how to build your own version of this kernel.

  1. Install git, ccache, gcc and make.
  2. Create a folder named toolchains in your home directory.
  3. Download the Linaro crosscompilers and uncompress them in toolchains (Download arm-linux-gnueabihf and aarch64-linux-gnu and name them toolchain32 and toolchain respectively).
  4. Clone the kernel with git clone https://github.com/halium-boot-xiaomi-sdm660/android_kernel_xiaomi_sdm660.git. If the download is too large, you can set the flag --depth=1.
  5. Do the desired modifications (Optional)
  6. Modify CROSS_COMPILE and CROSS_COMPILE_ARM32 inside of compile_kernel.sh so it points to your crosscompilers.
  7. Start building by running compile_kernel.sh on a terminal.
  8. Once it's done you will find the resulting zip file in output/Kernel-SDM660_Halium-XXXXXXXX-XXXX.zip
Clone this wiki locally