680845cb1c
Linux build / Determine Swift version (push) Waiting to run
Linux build / Linux compile check (push) Blocked by required conditions
Build containerization / Verify commit signatures (push) Has been skipped
Build containerization / containerization (push) Successful in 0s
1.4 KiB
1.4 KiB
Containerization Kernel Configuration
This directory includes an optimized kernel configuration to produce a fast and lightweight kernel for container use.
config-arm64andconfig-x86_64include the per-arch 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.
Target architecture
The build target is selected by the TARGET_ARCH make variable, which accepts either arm64 or x86_64. When unset, it falls back to the build host's architecture (as reported by uname -m, with aarch64/amd64 normalized to arm64/x86_64).
make(default) → builds for the host archmake TARGET_ARCH=arm64→vmlinux-arm64(uncompressedImage)make TARGET_ARCH=x86_64→vmlinuz-x86_64(compressedbzImage, cross-compiled inside the arm64 container)make x86_64→ convenience alias formake TARGET_ARCH=x86_64
The z suffix on the x86 name follows Linux convention for a compressed kernel image. The resulting kernel is copied into the repo's bin/ directory.