There are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML and PDF. Please read Documentation/admin-guide/README.rst first.
In order to build the documentation, use make htmldocs
or
make pdfdocs
. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory, several of them using the Restructured Text markup notation.
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.
- Make a new directory (top directory)
mkdir fuckmoto && cd fuckmoto
- Clone our repository with the kernel and scripts into a directory kernel-5.10
git clone https://github.com/moto-penangf/kernel_moto_penangf kernel-5.10 --depth 1
- Move the helper scripts to the top directory
mv kernel-5.10/helpers/* ./
It should look something like this:
|- fuckmoto
| |-- kernel-5.10
| |
| |-- build.sh
| |-- download_toolchain.sh
| |-- download_modules.sh
- Use the script
download_toolchain.sh
to download the correct toolchain and create the proper directory structure for its storage.
ATTETION! Helper scripts must only be run in the top directory!
./download_toolchain.sh
- Use the script
download_gki.sh
to download the GKI
./download_gki.sh
- Use the script
download_modules.sh
to download the vendor kernel modules required for the build
./download_modules.sh
- Check that the project structure is correct. A small example of what the structure should look like:
|- fuckmoto
| |-- kernel-5.10
| |-- vendor/mediatek/kernel_modules
| |-- prebuilts
| | |-- build-tools
| | |-- clang/host/linux-x86/clang-r416183b
| |
| |-- build.sh
| |-- download_toolchain.sh
| |-- download_modules.sh
- Build this shitcode from Motorola and MTK using the
build.sh
script
./build.sh