This repository contains useful shell scripts to simplify AOSP/Kernel development workflow. While primarily designed for Redmi Note 8 Pro (begonia), these scripts can be adapted for other devices with minimal modifications.
- Clone your kernel source and cd into it
- Clone this repo and copy required files:
git clone https://github.com/MrErenK/Scripts.git cp Scripts/kernel/{config.env,kranul-build.sh,KSU.patch} . - Configure build settings in
config.env - Run the build script:
chmod +x kranul-build.sh ./kranul-build.sh
- Multiple compiler support (AOSP, Azure, Neutron, Proton, ZyC, Yuki)
- KernelSU integration (optional)
- Telegram notifications
- Build logging
- Automatic defconfig regeneration
- ccache support
wget https://raw.githubusercontent.com/MrErenK/Scripts/main/aosp/setup-aosp-environment.sh
chmod +x ./setup-aosp-environment.sh
./setup-aosp-environment.sh [options]--no-ccache: Skip ccache setup--help: Show help message
- Automatic installation of required packages
- repo tool setup
- ccache configuration (optional)
- Smart package alternative suggestions
- Ubuntu 22.04 or newer recommended
- Sufficient storage space (50GB+ recommended)
- Good internet connection
- Basic knowledge of kernel/ROM building
Licensed under Apache License 2.0. See LICENSE for more information.