28892cfa11
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.
747 B
747 B
Containerization Kernel Configuration
This directory includes an optimized kernel configuration to produce a fast and lightweight kernel for container use.
config-arm64includes the kernelCONFIG_options.Makefileincludes the kernel version and source package url.build.shscripts the kernel build process.image/includes the configuration for an image with build tooling.
Building
- The build process relies on having the
containertool installed (https://github.com/apple/container/releases). - 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.