# Maintainer: Jaron Kent-Dobias # Contributor: Vasily Khoruzhick # Contributor: Jan Alexander Steffens (heftig) pkgbase=linux-raspberrypi4 _kver=6.11.4.rpi1 _zver=2.3.0-rc2 pkgver="${_kver}_${_zver//-}" pkgrel=1 pkgdesc='Raspberry Pi Linux' url='https://git.kent-dobias.com/system/linux' arch=(aarch64) license=(GPL2) makedepends=( bc cpio gettext libelf pahole perl python tar xz dtc clang llvm lld git python-setuptools python-cffi ) options=('!strip') _srcname=linux-v${_kver%.*}-${_kver##*.} _srctag=v${_kver%.*}-${_kver##*.} source=( "https://git.kent-dobias.com/system/linux/snapshot/linux-${_srctag}.tar.gz" "git+https://github.com/openzfs/zfs#tag=zfs-${_zver}" config # the main kernel config file ) validpgpkeys=( ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds 647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman A2FF3A36AAA56654109064AB19802F8B0D70FC30 # Jan Alexander Steffens (heftig) 0E3A444DD0760E65901BF59679E824090BD31086 # Jaron Kent-Dobias ) # https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc sha256sums=('34418b602eb50359f3aa5396567316756e520037f1ee3b4c6684ab80f7691622' 'ad1f20a1c14deb4de444274e33d5f5f0419300efd086125d7e9dba8ef9792244' 'ad54207e8e2728d51a3e6468ddcd2b34a277179d0c7eea054c18f7eb86c16c33') b2sums=('9ec18a3d1a37a79b6544d0ebfae313bb6407eaa65edf28316d0f43118bfe676868ff928e1aadb6c5ce50f88f09ca35e928ece8ebe080b448467fd24c49c41a44' '7824bd5b28651475b0ca1c97793e9a1c453cbd889e82ed5177d49030d6b0cab58075a3a52ed384dcbe3095258a716b4004fc903fdc2576a3457875bc8fb92a58' '4d4e3a657e67b5cb8fb291d124e1459cf4dd56a03808aabfc9507c16e9e51bad80727764a764bc31519cd41fdaf61aadce51a21a67e236d774d9ff040a26c648') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" export ARCH=arm64 export LLVM=1 prepare() { cd "${_srcname}" echo "Setting version..." echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname echo "Setting config..." cp ../config .config make olddefconfig make prepare cd ../zfs for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" src="${src%.zst}" [[ $src = *.patch && $src = zfs* ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done ./autogen.sh KERNEL_LLVM=1 CC=clang \ ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --with-mounthelperdir=/usr/bin \ --libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \ --with-udevdir=/usr/lib/udev --libexecdir=/usr/lib \ --enable-systemd --enable-pyzfs \ --with-zfsexecdir=/usr/lib/zfs --localstatedir=/var \ --enable-linux-builtin --with-linux=../$_srcname ./copy-builtin ../$_srcname cd ../$_srcname cp ../config .config make olddefconfig diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $(