Little build system to build Android kernel sources
- Clones AOSP Clang automatically
- Managed with config files
- Automatic AnyKernel3 packing
Note: Requires Python 3.9
- Clone the repo
- Open a terminal with pwd as the cloned repo
pip3 install .
- Add a config for your kernel in
device/vendor/codename.py(check the example config indevice/examples/example.py) - Add kernel sources in
kernel/(in the path that you specified in the config)
$ python3 -m build_kernel -h
usage: python3 -m kernel_build [-h] [-c] [-v] device
positional arguments:
device device codename
optional arguments:
-h, --help show this help message and exit
-c, --clean clean before building
-v, --verbose verbose logging