A helper tool for building and packaging kernels for android devices.
This repo is preconfigured for Samsung Galaxy Tab S7
- Clone or download a zip of this repository and extract it somewhere
- (optional) use distrobox or a simmilar tool to ensure a clean environment
- check and edit
config.yamlfor building - check and edit
anykernel.shfor packaging - run
./build.py initto download the kernel tree, toolchain and AnyKernel3 - run
./build.py build <variant|all>to build the variant from your kernel - run
./build.py package <variant|all>to package a flashable zip file
./build.py -v ...enables verboselogging./build.py clean <variant|all>to remove the out folders./build.py build ... -fwill continue building if the out folder is found../build.py build ... -rwill rebuild the.configfile
Fedora:
sudo dnf group install "c-development" "development-tools" && \
sudo dnf install -y git dtc lz4 xz zlib-devel java-17-openjdk-devel python3 \
p7zip p7zip-plugins android-tools erofs-utils java-latest-openjdk-devel \
ncurses-devel libX11-devel readline-devel mesa-libGL-devel python3-markdown \
libxml2 libxslt dos2unix kmod openssl elfutils-libelf-devel dwarves \
openssl-devel openssl-devel-engine libarchive zstd rsync cpio python3-pyyamlMy code is licensed under the Apache 2 License,
The anykernel.sh is licensed under a different one, check the anykernel.sh-LICENSE file