Files
apple--containerization/kernel/README.md
T
Danny Canter 28892cfa11 Kernel: Fix make (#301)
Fixes #296

Today the kernel subdirectory is somewhat useless. The dockerfile we had
tried to use an image that isn't actually on ghcr, so everything would
kind of just crap out. This change swaps things so that we build a local
image that has all the bits needed to compile the kernel, and then uses
that image to build the resulting kernel and plop it in the current
working directory. This change does add a reliance on `container` being
installed however, but for folks that need to build a custom kernel this
doesn't seem like too much of an issue to me.
2025-09-30 18:48:20 -07:00

747 B

Containerization Kernel Configuration

This directory includes an optimized kernel configuration to produce a fast and lightweight kernel for container use.

  • config-arm64 includes the kernel CONFIG_ options.
  • Makefile includes the kernel version and source package url.
  • build.sh scripts the kernel build process.
  • image/ includes the configuration for an image with build tooling.

Building

  1. The build process relies on having the container tool installed (https://github.com/apple/container/releases).
  2. Run make. This should create the image used for building the resulting Linux kernel, and then run a container with that image to perform the kernel build.

A kernel/vmlinux file will be the result of the build.