# Maintainer: graysky # Contributor: Jan Alexander Steffens (heftig) pkgbase=linux-rc pkgrel=1 _srcname=linux-5.10 _major=5.10 ### on initial release this is null otherwise it is the current stable subversion ### ie 1,2,3 corresponding $_major.1, $_major.3 etc _minor=3 _minorc=$((_minor+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=( bc kmod libelf cpio perl tar xz ) 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 0003-Bluetooth-Fix-attempting-to-set-RPA-timeout-when-uns.patch 0004-HID-quirks-Add-Apple-Magic-Trackpad-2-to-hid_have_sp.patch 0005-drm-amd-display-Add-get_dig_frontend-implementation-.patch 0007-btrfs-Fix-500-2000-performance-regression-w-5.10.patch 0008-iwlwifi-Fix-regression-from-UDP-segmentation-support.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) b2sums=('21cb6a79b621e502fb6c3bd1474aede7574928ba18ccde119c49849960bf5eb50099b483c582e7e202369b6ee6c13c1e6250a5cf6afeebfc717909b4db12d68c' 'SKIP' '0a8603991e9de4b50c2a0c9b7f96d2d169a41567f81bfc8bfd3d41edd45a948d2a672236c9651d701f16f0cb619c39996c9cc883647bacb2cefb33100e072d98' 'SKIP' 'ac86054c7dc7e47cdc256c652c47cc4dc2100d1110637253fcc986fb5bcbda0023e8525d36253b9111284fd4d68c2a111219d904ac0489fdc251b26fb92d7c86' '93567344c75bdd53b08bbae74d9cd6a99223825e37b59a762f7abd83ecf76e90d3a6d62d807d5ffe282aabbad21ae8c0e542fcf45e4419229de804068414d01d' '155b189c79c1631d1f709ad7b01fc0b1d94e9c7a31ba0eacaa2dcde80020e8b7b36bea2429668fcac440c97a11ea26051cf2912f3f7af070a3878c8d00d53c82' 'af8f9ad7ee3f78da380ca97be64179a5cf95216b0f3652a95536f313ac8a7fdb39657ec88ca70474582c56974d096691544afef5c31293194ef004710bcfbefa' 'da02f8893032c5658d2ba900355c3a576214e39c369faac6599fbbd2c416fee6f4efa7683f069b0269993a1f395cf373f27e2fc001206b95c7870a8f594c8ce5' '7733157d74983a5c2de0ab2aa1b41244ffa60e1fe038795fba1868a2410d2a91e23977462233628de85f3fea16921c48964f4c29e0a0af73e46cbd0dda26e05c' '9550885b97c06a796ff62923f2049cc7c6b6db3a31a1824e7b1bf6d1417e7243c8dff5bb358495c562880a821769c43f4aff258cf3e4e93f0642ac1881282496') 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 # disable CONFIG_DEBUG_INFO=y at build time otherwise memory usage blows up # and can easily overwhelm a system with 32 GB of memory using a tmpfs build # partition ... this was introduced by FS#66260, see: # https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/linux&id=663b08666b269eeeeaafbafaee07fd03389ac8d7 sed -i -e 's/CONFIG_DEBUG_INFO=y/# CONFIG_DEBUG_INFO is not set/' \ -i -e '/CONFIG_DEBUG_INFO_DWARF4=y/d' \ -i -e '/CONFIG_DEBUG_INFO_BTF=y/d' ./.config make olddefconfig # make nconfig make -s kernelrelease > version echo "Prepared $pkgbase version $(