# Maintainer: graysky # Contributor: Jan Alexander Steffens (heftig) pkgbase=linux-rc pkgrel=1 _srcname=linux-5.5 _major=5.5 ### on initial release this is null otherwise it is the current stable subversion ### ie 1,2,3 corresponding $_major.1, $_major.3 etc. _minor=8 ### on initial release comment this out and set to =1 _minorc=$((_minor+1)) #_minorc=1 ### on initial release this is just $_major _fullver=$_major.$_minor #_fullver=$_major _rcver=1 _rcpatch=patch-${_major}.${_minorc}-rc${_rcver} pkgver=${_major}.${_minorc}rc${_rcver} arch=(x86_64) license=(GPL2) url="https://www.kernel.org/" makedepends=( kmod inetutils bc libelf ) options=('!strip') source=( https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/"$_rcpatch".{xz,sign} # https://lkml.org/lkml/2019/8/23/712 # "$_rcpatch.patch::https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/patch/?id=$_srcname.y&id2=v${_major}.${_minor}" https://www.kernel.org/pub/linux/kernel/v5.x/linux-$_fullver.tar.{xz,sign} config # the main kernel config file 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 0002-iwlwifi-pcie-restore-support-for-Killer-Qu-C0-NICs.patch 0003-iwlwifi-mvm-Do-not-require-PHY_SKU-NVM-section-for-3.patch 0004-drm-Remove-PageReserved-manipulation-from-drm_pci_al.patch 0005-drm-i915-Serialise-i915_active_acquire-with-__active.patch 0006-drm-i915-gem-Take-runtime-pm-wakeref-prior-to-unbind.patch 0007-drm-i915-gem-Avoid-parking-the-vma-as-we-unbind.patch 0008-drm-i915-gem-Try-to-flush-pending-unbind-events.patch 0009-drm-i915-gem-Reinitialise-the-local-list-before-repe.patch 0010-drm-i915-Add-a-simple-is-bound-check-before-unbindin.patch 0011-drm-i915-Introduce-a-vma.kref.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) sha256sums=('4eb5b407e56b35338d621a2a59b554525275bb98ae1a1064ce6c58b7228d7b78' 'SKIP' 'e5b6f6938e99a39fb359618e92349ca4e2cd9db31e1b81b7d14d2fa7dc03fc06' 'SKIP' 'a841aa011edf6bae0ffbe8ead8177e5056de5a6d7333bb96e16917903de4d868' 'd4412be5c95843577937534051571d852690b01e1e21ffed36c1aeb91e728bcf' '83af12e6073856d1557c439c8f96fc14af3ff202e5a2bdeb3fcecb01f0db6672' '0e1b524d287a1b7415eab644e4add083f3e2649175af551d0646c81e822c2bb0' '92404a0534c5934d73420408707f474b151e2e01e4bbf8ad7141c55274e88aef' '83bc4c6d7fdf8b37a3804eef8bb4a6d44302fa2cabea40512859fa956eb78769' '6b1d8ec648f4e37d358d369bc2e20072a6d445234580dcfe2320df0dc24087d1' 'ed325f82071216c966008a8cffb3437c6561736418e4cd643abdf49bfed6e44c' 'b5e47e45d2fdaec040c6a7c28e9122408a539d5b2202f909bd94b0e5c158640d' 'd1fd21ccd8c4aaf35aa22abe26950132fd9dc4b69ee65908a69ca9c7a437fa16' '8c39a418e20934b60801885b76376bfdabd2b1dcf514762eff831d7138ca6b04' 'ff775e9b89dd08567f8b8fab65940b1a848b1bb4e67c4b280ed4f977fa5c96b2') _kernelname=${pkgbase#linux} export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" prepare() { cd linux-${_fullver} echo "Setting version..." scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname echo "Applying $_rcpatch..." patch -Np1 <"../$_rcpatch" local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." cp ../config .config make olddefconfig make -s kernelrelease > version echo "Prepared $pkgbase version $(