- Set up build environment as per Google documentation
https://source.android.com/docs/setup/start/requirements
- The
libarchive-toolspackage is also necessary to patch the toolchain. - The
ccachepackage is necessary if you wish to build with CCache (Quicker subsequest builds)
- Properly clone repository with submodules (KernelSU and toolchains)
git clone --recurse-submodules https://github.com/Mesazane/9820_kernel.git
- Build for your device without CCache and with KSU
./build.sh -m beyond1lte -k y -c n
- Build for all devices with or without KSU
./build_all.sh -k y
- Fetch the flashable zip of the kernel that was just compiled
build/out/[your_device]/ExtremeKRNL-Nexus...zip
-
Flash it using a supported recovery like TWRP either using the install function or ADB Sideload
-
Enjoy!
This file was moved to Documentation/admin-guide/README.rst
Please notice that there are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML and PDF.
In order to build the documentation, use make htmldocs or
make pdfdocs.
There are various text files in the Documentation/ subdirectory, several of them using the Restructured Text markup notation. See Documentation/00-INDEX for a list of what is contained in each file.
Please read the Documentation/process/changes.rst file, as it contains the requirements for building and running the kernel, and information about the problems which may result by upgrading your kernel.