# Maintainer: graysky # Contributorr: Jan Alexander Steffens (heftig) pkgbase=linux-rc pkgrel=1 _srcname=linux-5.4 _major=5.4 ### on initial release this is null otherwise it is the current stable subversion ### ie 1,2,3 corresponding $_major.1, $_major.3 etc. _minor=14 ### 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-lib-devres-add-a-helper-function-for-ioremap_uc.patch 0003-mfd-intel-lpss-Use-devm_ioremap_uc-for-MMIO.patch 0004-PCI-pciehp-Prevent-deadlock-on-disconnect.patch 0005-ACPI-PM-s2idle-Rework-ACPI-events-synchronization.patch 0006-iwlwifi-pcie-restore-support-for-Killer-Qu-C0-NICs.patch 0007-drm-i915-save-AUD_FREQ_CNTRL-state-at-audio-domain-s.patch 0008-drm-i915-Fix-audio-power-up-sequence-for-gen10-displ.patch 0009-drm-i915-extend-audio-CDCLK-2-BCLK-constraint-to-mor.patch 0010-drm-i915-Limit-audio-CDCLK-2-BCLK-constraint-back-to.patch 0011-pinctrl-sunrisepoint-Add-missing-Interrupt-Status-re.patch 0012-Revert-iwlwifi-mvm-fix-scan-config-command-size.patch 0013-e1000e-Revert-e1000e-Make-watchdog-use-delayed-work.patch 0014-drm-amdgpu-Add-DC-feature-mask-to-disable-fractional.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) sha256sums=('478af3d39f5b87f9c7d5e063ddea91ab8b6530c081b90de01798b1fbd1e47ca1' 'SKIP' '531e18b0eef516fa4b3843f89729fafbf3c6bc00325b082cc1f2cfcb28c8d7f0' 'SKIP' 'eeb60c19586bf5855eeaeac8323b0012107bfa74f9efa0c8e129d979d38f1f31' '6bc06821c6dc94a8af1018df31780dfbad354dce46792f65ee45bf6261968ec7' '4cdf7a686248aceeed6ca0296636dc0d4efaede2b77df98a6c3d559116156a00' 'c21b89ac3d24445dafcd8a3f2dfb6574eae0f50f3849f8abf1126862e2f82dcd' '2c7733955ede78f64b21d14b2f3ad0c8e0e98cc5eccb3228e532203d9c60056b' 'aa19094814bf528f760c7bc5f207fe51d1163c9255add0fad09f15d8747b4e8e' '8ec48bcab7e133fb3fcd49bac9e6aa8075beb2720ae07832a0c4962df9309b7c' '4d497f775c8785771cf28ed7a807d53617dfb914567def8b65a970c7472a8dc4' '022be9ea56431b07a169765def3f5b33330d710be527fde652a0164e1108d96f' '77f0cbc3fb6fd7e357c9c052b9d483e00a542eba3cf7f5baba2576f96ba71416' 'c7602e3ef7986da9b8a6197db281ee41381fae65ed2d1a814160638acd6978e9' '9fc6cfeab4da541b06993cc5a42d1d7de78238bcaf477d523cc51ae5337bd050' 'ba20b1928026473497a69e2a1c1c7c5fdd63c5f63818036998d9ee96258c34c1' 'a81cff6b669e36778a420b2c441a0ae79f257096d1059cc293bea931b91f6ff1' 'fa7b003f7c5acabae8cff051630a93e3d4556c275067516bb05922bfd9ee8b28') _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 %s version %s" "$pkgbase" "$(