How cachyos/linux-cachyos works
Purpose and Entry Points
This repository defines Arch Linux package builds for CachyOS kernel variants. It does not contain the kernel source; package recipes acquire and build the CachyOS Linux fork into installable packages. Primary build entry points are variant PKGBUILD files, especially linux-cachyos/PKGBUILD, with architecture-oriented build wrappers in script.sh, script-v3-v4.sh, and script-znver4.sh.
Variant Package Families
Each top-level linux-cachyos-* directory is an independently buildable kernel package family, combining a package recipe, kernel configuration, and generated Arch metadata:
• Default optimized EEVDF build: linux-cachyos/PKGBUILD, linux-cachyos/config, linux-cachyos/.SRCINFO
• Scheduler variants: linux-cachyos-bore/PKGBUILD, linux-cachyos-bmq/PKGBUILD, linux-cachyos-eevdf/PKGBUILD
• Specialized builds: linux-cachyos-lts/PKGBUILD, linux-cachyos-hardened/PKGBUILD, linux-cachyos-rt-bore/PKGBUILD
• Workload/device builds: linux-cachyos-server/PKGBUILD, linux-cachyos-deckify/PKGBUILD, linux-cachyos-rc/PKGBUILD
The directory boundary is the principal product boundary: variants can differ in scheduler, upstream series, hardening, real-time support, device enablement, compiler choices, and configuration.
Build Definition Stage
PKGBUILD files are the authoritative executable specifications for Arch makepkg: source retrieval, versioning, patches/build flags, kernel compilation, module/package assembly, and package metadata. For example, linux-cachyos/PKGBUILD defines the default product, while linux-cachyos-lts/PKGBUILD and linux-cachyos-rc/PKGBUILD represent different kernel-release tracks.
The build depends materially on Arch packaging infrastructure (makepkg/pacman conventions), a kernel toolchain (GCC or LLVM/Clang depending on variant), and the external CachyOS Linux source fork/upstream Linux inputs.
Kernel Configuration Boundary
Per-variant config files are declarative kernel feature boundaries consumed by their sibling package recipes:
• linux-cachyos/config
• linux-cachyos-hardened/config
• linux-cachyos-server/config
These configurations select scheduler and systems capabilities such as preemption, hardware drivers, filesystems, networking, security hardening, and sched-ext compatibility. Recipe logic supplies build mechanics; config supplies the kernel feature policy.
Metadata and Release Synchronization
.SRCINFO is generated package metadata for Arch repository/index consumers and must remain synchronized with each PKGBUILD, e.g. linux-cachyos/.SRCINFO, linux-cachyos-bore/.SRCINFO, and linux-cachyos-rt-bore/.SRCINFO. srcinfo.sh is the repository-level maintenance entry point for regenerating this metadata.
Release automation is centered on tag-release.sh, which likely coordinates version/tag-oriented release preparation across package definitions. The resulting artifacts are intended for CachyOS package repositories and consumed through pacman.
Architecture-Specific Build Flow
The normal control flow is: select a kernel variant → select target CPU baseline/optimization tier → invoke the appropriate build script or makepkg → compile/package kernel and modules → publish package metadata/artifacts.
script.sh is the general wrapper; script-v3-v4.sh targets x86-64-v3/v4 optimized builds; script-znver4.sh targets AMD Zen 4-oriented builds. This separates CPU ISA targeting from the kernel-variant directories, allowing the same product family to be rebuilt for multiple CachyOS repository tiers.
CI and Operational Boundaries
GitHub Actions workflow /.github/workflows/build.yml is the visible automation boundary for validating or building package changes. Repository CI executes in GitHub-hosted infrastructure, while final distribution relies on external CachyOS mirrors/repositories and Arch-compatible package management. The source/kernel integration boundary remains external: this repo packages the CachyOS Linux fork rather than implementing kernel subsystems itself.
Main entry points: PKGBUILD PKGBUILD specifications · srcinfo.sh SRCINFO refresh · .SRCINFO Generated .SRCINFO · config Default kernel config
Components 19
Kernel package families
Independent Arch kernel products.
- Default EEVDF package · Primary optimized CachyOS kernel product.
linux-cachyos/PKGBUILD - Scheduler variants · BORE, BMQ, and alternate EEVDF products.
- Specialized variants · LTS, hardened, and RT/BORE release tracks.
- Workload/device variants · Server, Deckify, and release-candidate builds.
- Default kernel config · Feature policy consumed by the default recipe.
linux-cachyos/config - Variant kernel configs · Per-product scheduler, driver, and security policy.
- Generated .SRCINFO · Repository metadata synchronized from package recipes.
linux-cachyos/.SRCINFO - PKGBUILD specifications · Authoritative source, version, build, and package definitions.
linux-cachyos/PKGBUILD
Build and release automation
- General build wrapper
script.sh - x86-64-v3/v4 wrapper · Selects x86-64-v3/v4 optimized builds.
script-v3-v4.sh - Zen 4 wrapper · Selects AMD Zen 4-oriented builds.
script-znver4.sh - SRCINFO refresh
srcinfo.sh - Release tagging
tag-release.sh - GitHub Actions build · Validates or builds package changes.
.github/workflows/build.yml
External build and distribution
- CachyOS Linux source · Fork and upstream Linux inputs are acquired by recipes.
- Arch packaging toolchain · Arch packaging conventions plus GCC or LLVM/Clang.
- Kernel packages and modules · Installable compiled kernel outputs.
- CachyOS repositories · External repositories and mirrors publish packages for pacman.
- Arch package consumers
Connections 21
- Default EEVDF package → PKGBUILD specifications: is defined by
- Scheduler variants → PKGBUILD specifications: contribute recipes
- Specialized variants → PKGBUILD specifications: contribute recipes
- Workload/device variants → PKGBUILD specifications: contribute recipes
- Default kernel config → Default EEVDF package: sets feature policy
- Variant kernel configs → Scheduler variants: configure
- Variant kernel configs → Specialized variants: configure
- Variant kernel configs → Workload/device variants: configure
- General build wrapper → PKGBUILD specifications: invokes build
- x86-64-v3/v4 wrapper → PKGBUILD specifications: builds CPU tiers
- Zen 4 wrapper → PKGBUILD specifications: builds Zen 4 tier
- PKGBUILD specifications → CachyOS Linux source: retrieves sources
- PKGBUILD specifications → Arch packaging toolchain: runs through
- Arch packaging toolchain → Kernel packages and modules: compiles and packages
- SRCINFO refresh → PKGBUILD specifications: reads recipes
- SRCINFO refresh → Generated .SRCINFO: regenerates
- Release tagging → PKGBUILD specifications: prepares releases
- GitHub Actions build → PKGBUILD specifications: validates or builds
- Kernel packages and modules → CachyOS repositories: published to
- Generated .SRCINFO → CachyOS repositories: indexes packages
- CachyOS repositories → Arch package consumers: served through