# 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=10 ### 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 ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) sha256sums=('63a2c8796eb796c1c69db041a75af86aa8748964939dab442d9d79be9a81dbc8' 'SKIP' 'e31d8e35d7d9766fa912b8cebcfaaa8fc6dd07413a467641d264fd13cf20fc23' 'SKIP' 'a841aa011edf6bae0ffbe8ead8177e5056de5a6d7333bb96e16917903de4d868' '66a5998393dbadc770866164910f7cf5a6ea3581fc186e600eba4a38df6a6e56' 'f84da7259bbbd4037dd64eaad65f52c00359c1f788cd74c9967a28256a766fa1' '0805b20d65e7837ae144ce6d480155ed46d94b9258e4ccc52214e339e24dd533' '5f3f711df751e903dfc79941529163adb631bd44012f30c11235e0efac5f69c9' '4e130e45adac5add735dd06790ec9a49a3ab3cc246e7e70415e2c6f3b82a8cd0' '1d3752cacb94b4e6e98842deb52bdb4ce8aaab93996ab63c9a2ee17b931d8780' '0fbf9372a817cb6792c71c304948d79f17f08f9e4eb8393f5d69ba399ef0343e' '8d82f3e5940bc2dc93b1978a3825777a078af46c391a860393ef0d01e1a16f37' 'a3e3e9cb97c81067d5b6290e4a61514ec7f09aa7d39070a3b4f2088371459fe6' '82bb562401324ee57807a573ebb9a30b8e14e74f6a82298c69fdedf9e07859e1') _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 $(