Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngn13/kbuild
kernel build script for development/hacking
https://github.com/ngn13/kbuild
build-script build-tool kernel-builder kernel-dev kernel-development kernel-hacking
Last synced: about 1 month ago
JSON representation
kernel build script for development/hacking
- Host: GitHub
- URL: https://github.com/ngn13/kbuild
- Owner: ngn13
- License: gpl-3.0
- Created: 2024-04-19T22:49:16.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-20T00:38:55.000Z (9 months ago)
- Last Synced: 2024-04-20T23:45:40.359Z (9 months ago)
- Topics: build-script, build-tool, kernel-builder, kernel-dev, kernel-development, kernel-hacking
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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:
```bash
./kbuild.sh 5.15.135
```
you can also build the staging kernel using `staging` as the versionto build using a specific config, specify config's path at the end:
```bash
./kbuild.sh 5.15.135 my-cool-config
```### booting
you can also boot the kernel you built with QEMU/KVM, using the `kboot` script:
```bash
./kboot.sh 5.15.135
```by default, this script will build busybox for initramfs, however you can specify
a path to your own initramfs:
```bash
./kboot.sh 5.15.135 my-cool-initramfs.cpio.gz
```
note that this will extract the initramfs to install the kernel modules