From f4aefe779cc08842d103ba10e41c25e56e2704b9 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Wed, 26 Jan 2022 20:05:13 +0100 Subject: [PATCH] Install resolve_btfids on 5.16+ instead of just 5.16. It was unknown if the change would stay with 5.17 but looks like it is. Should fix https://github.com/Frogging-Family/nvidia-all/issues/88 --- PKGBUILD | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 19020cd..0a509c1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -59,7 +59,7 @@ else fi pkgname=("${pkgbase}" "${pkgbase}-headers") pkgver="${_basekernel}"."${_sub}" -pkgrel=239 +pkgrel=240 pkgdesc='Linux-tkg' arch=('x86_64') # no i686 in here url="http://www.kernel.org/" @@ -915,14 +915,10 @@ hackheaders() { # add xfs and shmem for aufs building mkdir -p "$builddir"/{fs/xfs,mm} - # add resolve_btfids on 5.16 - case $_basever in - 516) - install -Dt "$builddir"/tools/bpf/resolve_btfids tools/bpf/resolve_btfids/resolve_btfids - ;; - *) - ;; - esac + # add resolve_btfids on 5.16+ + if [ $_basever -ge 516 ]; then + install -Dt "$builddir"/tools/bpf/resolve_btfids tools/bpf/resolve_btfids/resolve_btfids + fi msg2 "Installing headers..." cp -t "$builddir" -a include