# 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=11 ### 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 ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) sha256sums=('c59a7777c86d74e3a23aef455aeada20196c1a118cb23ef2c0237d519cebd4fa' 'SKIP' 'a547afcfd14d9253b27230ed88b4f8a9569bcf85ad6bad8c299deab1e4d2f42e' 'SKIP' 'a841aa011edf6bae0ffbe8ead8177e5056de5a6d7333bb96e16917903de4d868' '566bc20e90afbac7d3836e5ccf32eca927858dda45b18431c6c91d46ae494c70' 'e40d89048087c139359cf12798d5cbab3b5077e903d7b1cb78e6a5269d92013f' '00496b895c63f6fd73e292ead6634de4e7a8187fa0bd11eb5700ec6ef1a3c259' '1a92cefbc60cd3bbc404267f6a42329e25ca0265bbff92b84f42ef668edef85f' '8e171645648ce9c853663751da4163e53e052763a8a90a6a127118b2b50d613c' '29ab130f003665ba4a9f0051e4b28ded7c58ecc642f6f2fc937b74c20bafb00a' 'fb5f39f4cb9f1f356d078d909c479774d717174aa07c94eb98c66f0889ddf719' '5121de6344e3c44b5bd37ba6ac22f2c2d42632abf5d2d678f2e1a74a5cdfe5ca' '1b8896c1944b549dd32e27439faef82dc2366f26916c445e6950ea3a764cc8a9' '220800dfa73834230ee0c321120ab18cf14a304a437c7f985f582758c5853e67' 'c00c5b6f45cb92512eaead6ae01d5b8c07b91cc8a83ae6ef961d6a6ce3ea90be') _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 $(