ngn13 / kbuild

kernel build script for development/hacking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kbuild | kernel build script for dev/hacking

simple script for building the kernel for development and hacking purposes, script is designed for x86_64 builds, but you can easily change that by doing a little bit of editing

building

to build a specific version with x86_64_defconfig and CONFIG_DEBUG_INFO=y, just specify the version, for example:

./kbuild.sh 5.15.135

you can also build the staging kernel using staging as the version

to build using a specific config, specify config's path at the end:

./kbuild.sh 5.15.135 my-cool-config

booting

you can also boot the kernel you built with QEMU/KVM, using the kboot script:

./kboot.sh 5.15.135 

by default, this script will build busybox for initramfs, however you can specify a path to your own initramfs:

./kboot.sh 5.15.135 my-cool-initramfs.cpio.gz 

note that this will extract the initramfs to install the kernel modules

About

kernel build script for development/hacking

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%