# Maintainer: graysky # Contributor: Jan Alexander Steffens (heftig) pkgbase=linux-rc pkgrel=2 _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=13 ### 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-drm-Remove-PageReserved-manipulation-from-drm_pci_al.patch 0004-drm-i915-Serialise-i915_active_acquire-with-__active.patch 0005-drm-i915-gem-Take-runtime-pm-wakeref-prior-to-unbind.patch 0006-drm-i915-gem-Avoid-parking-the-vma-as-we-unbind.patch 0007-drm-i915-gem-Try-to-flush-pending-unbind-events.patch 0008-drm-i915-gem-Reinitialise-the-local-list-before-repe.patch 0009-drm-i915-Add-a-simple-is-bound-check-before-unbindin.patch 0010-drm-i915-Introduce-a-vma.kref.patch 0011-iwlwifi-don-t-send-GEO_TX_POWER_LIMIT-if-no-wgds-tab.patch 0012-Revert-bpf-Provide-better-register-bounds-after-jmp3.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) sha256sums=('3957619b036c50667d86775c039073d6005df188e34a0af2471b24751b2faed1' 'SKIP' '1f3b3614a06bffc9c621c82f98d8ca88c60538a8c6dd77f96f2e7fee310a4ee2' 'SKIP' 'cefc4c5853c1df6595380fb7259289f5850662cd7aa9600dce114e4e525114e1' '62b087dd679e096a18611648308c05c896c587b488631fef4df51524dc4d2b6c' 'ab9b3259ca838688a02beb37df3ba0d058b3b3847b703e99352b193a1be961e6' '32c0ca29f46c7335ed8f7c2052ee1eccc88287d88680e7d4d1a6104134abf5a2' '2dfd1fc8c6115a7633dca86df1098cc55e6401ec7cbee1c2d0f1cbcfa1d7bf78' 'ef83a35e3516b456923be416606ccabfd05abe8ca587007a2fc00001c609ecca' 'd8cb6bf029d5a3729149bdd6fb88b4d57691d37baf4e6d280283197693c82f24' '8da1046091242178219de63805bf08f2d8bfe72874ab5f2b616249d7b87227ea' '70f0e78e7335cb713c06a1e0b886d4c8edebf2048c588f00d12e95c930483cd9' '6d305596dc9be86a65b9200bf69c001a8e4ddd41cad471289c3c769b5530c359' 'a4a10bcb55fc1991200c3835b359b81f5e3e858f5be77c6b9eaef033885c8bfc' 'a578a12239e39728c63038db6539abcee422bed4d04ee5bf99f6ba5be8884a9a' '4e59212ab1951d1064132cf54c6531d9245a987648de2cad3ca448ae183a53c7') _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 $(