Sign inSign up

pastorrob/kernel-build

By pastorrob

Updated over 1 year ago

Build Linux kernels without installing all of the tools.

Image
0

393

pastorrob/kernel-build repository overview

kernel-build

A docker image that contains everything required to build a kernel. https://github.com/pastor-robert/kernel-build

Usage

curl https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.19.14.tar.xz | tar xJ
cd linux-5.19.14
docker run -it --rm -v $PWD:/work kernel-build make menuconfig
docker run -it --rm -v $PWD:/work kernel-build make 

Trivial Initramfs

https://lyngvaer.no/log/create-linux-initramfs

Run

docker run \
 -v /home/rob/src/kernel-build/linux-5.19.14:/work \
 -it --rm \
 kernel-build qemu-system-x86_64 \
  -nographic \
  -kernel ./arch/x86/boot/bzImage \
  -append console=ttyS0 \
 -initrd ./initramfz

Tag summary

Content type

Image

Digest

sha256:2bd13e4b3

Size

391 MB

Last updated

over 1 year ago

docker pull pastorrob/kernel-build