Fiw-Gentoo-Dots/optional/kernel/guard
Fi3w0 8c9322b4ed
All checks were successful
Check and mirror to GitHub / checks (push) Successful in 21s
Check and mirror to GitHub / github-mirror (push) Successful in 7s
Update custom kernel to CachyOS 7.2.9-2 (fiw-nyx-v1.2) and add Ryzen tuning
- Kernel snapshot: CachyOS 7.2.9-2 patch, name -2-fiw-nyx-v1.2; later 7.2.x
  point releases reuse the patch, next series masked from snapshot.json
- Fiw's Ryzen preset: sysctl tuning (max_map_count, dirty bytes, BBR + fq)
- tidewm list gains mpvpaper; grim moves to dev
2026-10-08 03:43:01 +02:00

19 lines
942 B
Text

# Installed as /etc/portage/env/sys-kernel/gentoo-kernel
# /proc/version → "... (fiw@gentoo) ..."
export KBUILD_BUILD_USER=fiw
export KBUILD_BUILD_HOST=gentoo
# Version the CachyOS patch in /etc/portage/patches was generated for.
# fiw-cachy-patch rewrites this line (the postsync hook runs it when CachyOS
# has a release for a new gentoo-kernel). A newer point release in the same
# series (7.2.x) reuses the existing patch and config.d unchanged; if the patch
# no longer applies, the build stops and the installed kernels stay as they are.
FIW_CACHY_PV=7.2.9
pre_src_prepare() {
[[ ${PV} == "${FIW_CACHY_PV}" ]] && return
if [[ ${PV%.*} != "${FIW_CACHY_PV%.*}" ]]; then
die "CachyOS patch is for ${FIW_CACHY_PV}; ${PV} is a new series. Run: fiw-cachy-patch ${PV}"
fi
ewarn "No CachyOS patch for ${PV} yet: reusing the ${FIW_CACHY_PV} patch and config."
ewarn "Fallbacks if it misbehaves: gentoo-kernel-bin entry, or CachyOS."
}