Skip to content

[How‐To] Build

Manuel Pinto edited this page Jan 2, 2025 · 2 revisions

Init. System

sudo apt install -y bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32readline-dev lib32z1-dev libelf-dev liblz4-tool libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev libncurses-dev

Clone Kernel Source

git clone --recurse-submodules https://github.com/P1N2O/delta_kernel_xiaomi_sm8250.git

Build Kernel

./build.sh --device=alioth --clean

--device argument accepts alioth or apollo

--clean argument can be passed to clean out dir before compiling.

Note: The build script automatically downloads WeebX Clang if Clang isn't found in ../prebuilts/clang dir.

On successful build, a flashable zip is generated in the kernel root dir.

Clone this wiki locally