Skip to content

rajatpatel92/kernel_xiaomi_whyred

 
 

Repository files navigation

Whyred-OSS

Stock kernel from Xiaomi's OOS with merged linux-stable upstream v4.4.133.

How to compile with Clang?

  • Assuming out is your output directory and whyred-perf_defconfig is your default defconfig
  • mkdir -p out
  • make O=out clean
  • make O=out mrproper
  • make O=out ARCH=arm64 whyred-perf_defconfig
  • make -j$(nproc --all) O=out ARCH=arm64 CC="<path_to_clang>/bin/clang" CLANG_TRIPLE="aarch64-linux-gnu-" CROSS_COMPILE="<path_to_toolchain>/bin/aarch64-linux-android-"

Note

If you want to get rid of the long Google URL in the kernel version, then you need to add the following before compiling the kernel

export KBUILD_COMPILER_STRING=$(<path_to_clang_folder/bin/clang --version | head -n 1 | perl -pe 's/\(http.*?\)//gs' | sed -e 's/  */ /g' -e 's/[[:space:]]*$//')

External Links

  • Nathan's guide on how to compile with clang: Click here!

Found bugs?

Contact:

Telegram: @AxelBlaz3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.1%
  • Assembly 1.6%
  • C++ 1.3%
  • Objective-C 0.4%
  • Makefile 0.3%
  • Perl 0.1%
  • Other 0.2%