# Maintainer: Markus Fritsche # # linux-ampere-fourier — CoolPi GenBook (RK3588) kernel built from the # kernel-agent fleet/ampere.yaml manifest applied to mainline v7.0-rc3. # # kafr2 baseline (2026-05-18): mainline v7.0-rc3 + the 10 scope-tagged # kernel-agent patches under patches/{soc,module,board,driver}/: # - 1 soc/rk3588 pwm15 pinctrl # - 6 board/coolpi-cm5-genbook DTS patches (pwm-fan, RK806 power-off, # speaker, USB-C PD, lid switch + USB3 PHY, microphone) # - 3 driver/media VP9-on-VDPU381 patches (Sarma's v8 series, imported # via marfrit/kernel-agent#12 closure and PR #24) # # Drops the prior f8f3ad9 baseline ("18 commits ahead") because that tip # black-screens ampere — kernel-agent's ka-promote produces this 10-patch # minimal set from fleet/ampere.yaml. End-to-end VP9 + AV1 (av1-vpu-dec # is mainline-7.0) decode verified bit-exact via kdirect on the # hand-built tip 48a8c78 before this package iteration was cut. # # Coexists with the user's other extlinux labels in # /boot/firmware/extlinux/extlinux.conf; never edits them. Adds a # managed `linux-ampere-fourier` label (the user sets `default` manually # after verifying boot). # # Bootloader path: /boot/firmware/ (vfat on mmcblk0p1). Kernel + # initramfs + DTB land there directly. Reverting = boot a different # extlinux label (e.g. arch_mainline, ubuntu_mainline). pkgbase=linux-ampere-fourier pkgname=("$pkgbase" "$pkgbase-headers") pkgver=7.0rc3.kafr2 pkgrel=1 pkgdesc='CoolPi GenBook kernel (v7.0-rc3 + kernel-agent fleet/ampere.yaml — 6 board patches + 3 VP9-VDPU381 + 1 pwm15)' arch=(aarch64) url='https://git.reauktion.de/marfrit/kernel-agent' license=(GPL-2.0-only) makedepends=( bc cpio gettext kmod libelf pahole perl python tar xz ccache uboot-tools dtc ) options=('!strip') # Pinned tip of the kernel-agent-managed source tree for ampere. # 10 commits ahead of v7.0-rc3, exactly mirroring fleet/ampere.yaml's # manifest under apply order: # - c57d069 soc/rk3588: pwm15 pinctrl entries # - 05a915c board/genbook: pwm-fan with thermal cooling # - d007b90 module/coolpi-cm5: RK806 system-power-controller # - 3722eab board/genbook: speaker via audio-graph-card # - 3e42ab6 board/genbook: USB-C PD via FUSB302 # - 7c241f2 board/genbook: lid switch + USB3 PHY lane # - dd545fa board/genbook: wire internal microphone # - 9ddcae5 driver/media: rkvdec-vp9 helper rename (Sarma) # - c5063d9 driver/media: rkvdec move vp9 to common (Sarma) # - 48a8c78 driver/media: rkvdec VP9 for VDPU381 (Sarma) # # This is the same tree state ka-promote ampere produces as cumulative.patch # (see marfrit/kernel-agent build/ampere/v7.0-rc3/manifest.lock for the # b2sum + per-patch sha256s). _commit=48a8c785de7f5320513052a64e544c6310d7b273 source=( # Local tarball produced by ./prebuild.sh from a local clone of the # linux-rk3588-marfrit branch. Not fetched from a URL because the # boltzmann working clone is shallow (gitea push rejects) and the # 260MB tarball isn't committed to marfrit-packages. Run prebuild.sh # before makepkg; see README in this dir. "linux-rk3588-marfrit-${_commit:0:7}.tar.gz" 'config' # snapshot of running ampere kernel's /proc/config.gz (7.0.0-rc3-ARCH+) 'linux-ampere-fourier.preset' 'extlinux-add.hook' 'extlinux-add.sh' ) sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP') # kernelrelease becomes .. # i.e. 7.0.0-rc3-ampere-fourier. Module dir + EXTRAVERSION suffix keep # this disjoint from the hand-managed /boot/firmware/Image-7.0.0-rc3-ARCH+ # that's currently on the host. _kernver=7.0.0-rc3-ampere-fourier _srcdir=linux-rk3588-marfrit prepare() { cd "${_srcdir}" echo ":: writing config" cp "${srcdir}/config" .config # LOCALVERSION suffix to differentiate from upstream-stock builds. scripts/config --set-str LOCALVERSION "-ampere-fourier" scripts/config -d LOCALVERSION_AUTO echo ":: olddefconfig (accept new symbols sensibly)" make olddefconfig make -s kernelrelease > version echo ":: kernel release: $(