- This Script help to compile kernel Source using clang.
sudo apt-get update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends \
git build-essential bc bison flex \
libssl-dev libelf-dev zlib1g-dev \
clang lld llvm gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi \
python3 python3-pip ninja-build zip ccache
sudo ln -sf /usr/bin/ld.lld /usr/bin/ld || true
curl -O https://raw.githubusercontent.com/Jonjeexe/Kernel_Builder/refs/heads/script/build.sh- edit KBUILD_BUILD_USER (optional)
- edit KBUILD_BUILD_HOST (optional)
change <codename>_deconfig to your own codename according to your device for example
blossom_deconfig
- Run this cmd into your Kernel Source dir
chmod +x build.sh && ./build.sh