Tired of generic kernels? Want to brew your own custom Linux kernel for your ARM64 device? Kernel Alchemist is here to help! This bash script simplifies the process of building a personalized kernel, tailored to your exact needs.
- Defconfig Discovery: Easily browse and select from available kernel configurations (defconfigs) or whip up your own using the interactive menuconfig. No more searching through endless files!
- Clang Conjuring: Kernel Alchemist automatically summons the latest ZyC Clang 20.0.0 compiler, ensuring you have the finest tools for the job. No manual downloads or installations needed!
- Defconfig Alchemy: Regenerate existing defconfigs or tweak them to perfection with menuconfig. Save your concoctions and reuse them later.
- Telegram Telepathy: Get notified instantly on Telegram if your brewing process encounters any hiccups. Debug and fix issues faster than ever before.
- Lightweight and Brewtiful: Kernel Alchemist is a lean, mean, bash-scripting machine. Easy to use, easy to customize.
- Linux Build Environment: A system running a Linux distribution (e.g., Ubuntu) with basic build tools installed.
- Essential Packages:
bc
,curl
,make
,zip
,wget
,git
(most likely already present on your system). - Telegram Bot: A Telegram bot created using BotFather. Obtain your bot token and the chat ID where you want to receive notifications.
- AnyKernel3: An AnyKernel3 repository for packaging your compiled kernel.
- Defined Variables:
TELEGRAM_BOT_TOKEN
: Your Telegram bot token.TELEGRAM_CHAT_ID
: Your Telegram chat ID.DEVICE_NAME
: The codename of your device (e.g., merlinx, lancelot).KERNEL_VERSION
: The name of your kernel (e.g., Fearless, Atomic).ARCH
: The architecture of your device (set toarm64
by default).PROCS
: The number of CPU cores to use for compilation (set to8
by default).LINKER
: The linker to use (set told.lld
by default).
1. Clone this repository or copy the craft.sh script
2. Enter this script into the kernel folder that you will build
3. then give permission "chmod 0777 craft.sh"
4. Then launch the script by typing ./craft.sh
This script is inspired by Origami Kernel Builder by @rem01gaming
This script is licensed under the GNU General Public License v3.0. Refer to the LICENSE file for more details.