# Maintainer: Maximilian Luz pkgbase=linux-surface-lts pkgver=4.19.151 pkgrel=1 pkgdesc='LTS Linux' url="https://www.kernel.org/" arch=(x86_64) license=(GPL2) makedepends=( bc kmod libelf xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick ) options=('!strip') _srcname=linux-$pkgver source=( https://www.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign} config # the main kernel config file 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch surface.config 0001-surface3-power.patch 0002-surface3-touchscreen-dma-fix.patch 0003-surface3-oemb.patch 0004-surface-buttons.patch 0005-suspend.patch 0006-ipts.patch 0007-wifi.patch 0008-surface-gpe.patch 0009-surface-sam-over-hid.patch 0010-surface-sam.patch 0011-i2c-core-Restore-acpi_walk_dep_device_list-getting-c.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman ) # https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc sha256sums=('c7b134c6d45f77df0909c225300e64379d7f9d69abd9ad73ff6a289aa2b6a36e' 'SKIP' '4e68572e7cc4c5368f0236e0792660ae8498373988625dca46e509399a7eaea6' 'a13581d3c6dc595206e4fe7fcf6b542e7a1bdbe96101f0f010fc5be49f99baf2' '1c4963e4a911e74ed56f1fe0065c31201edca9a5e3f89eb30b7063f9981ebdd8' '111b4f7814d49c06f3f328feba30c8991e423acce36aa9c737a31489a64b9e5d' 'b85aa40e2c3c04514aa14538c7486653cc987276acffae532e3b8516d3328bfc' '602fb64b0b2073e0b016f39be34d86113fb0b3e63b4490cc26611d1313b3665e' '99bc4ce339713433a06d936bb6c339d2797b6bec8e7af91be017bcf30bc658b3' '0d0bd51185191cdc29405db26cfa8d79debb85aa090931672b8ac5c3ee4a7e10' '0383649af9c5f63c47b515d03e9279a4090fec1fb32a9d47692a491c80f5a1b5' 'e5fd01b8fdb8c53f46ac58fdffd4d7a75f009217e5f2a484ac00a6bb9968eab4' '4a5c643ec9a3c3e15ceff45e024fce0462dc314b516fe0620de6858178d96fc8' 'f28bc22540ad92769c4bd787140ab759f665f262f1c9cb8827010d8c8f6c5d4c' '71deb9a7421a7ba3be46059e5246a2900b1d1cd206339716f1fb9f1c848731d7' '12dd1c955d2b9123afaad2690d65905ea394f297ba27ab4fec32dd5655553c8c') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" # optional certificate and key for secure boot signing _mok_crt="$PWD/MOK.crt" _mok_key="$PWD/MOK.key" prepare() { cd $_srcname msg2 "Setting version..." scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue msg2 "Applying patch $src..." patch -Np1 < "../$src" done msg2 "Setting config..." # cp ../config .config # merge the two configs together ./scripts/kconfig/merge_config.sh -m ../config ../surface.config make olddefconfig make -s kernelrelease > version msg2 "Prepared %s version %s" "$pkgbase" "$(