Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kernel-builder

A helper tool for building and packaging kernels for android devices.
This repo is preconfigured for Samsung Galaxy Tab S7

Usage

  • 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.yaml for building
  • check and edit anykernel.sh for packaging
  • run ./build.py init to 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

Useful

  • ./build.py -v ... enables verboselogging
  • ./build.py clean <variant|all> to remove the out folders
  • ./build.py build ... -f will continue building if the out folder is found.
  • ./build.py build ... -r will rebuild the .config file

Required packages for building

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-pyyaml

License

My code is licensed under the Apache 2 License,
The anykernel.sh is licensed under a different one, check the anykernel.sh-LICENSE file

About

A helper tool for building and packaging kernels for android devices.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages