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
This commit is contained in:
Tk-Glitch
2022-01-26 20:05:13 +01:00
parent c7ab89eaa8
commit f4aefe779c

View File

@@ -59,7 +59,7 @@ else
fi fi
pkgname=("${pkgbase}" "${pkgbase}-headers") pkgname=("${pkgbase}" "${pkgbase}-headers")
pkgver="${_basekernel}"."${_sub}" pkgver="${_basekernel}"."${_sub}"
pkgrel=239 pkgrel=240
pkgdesc='Linux-tkg' pkgdesc='Linux-tkg'
arch=('x86_64') # no i686 in here arch=('x86_64') # no i686 in here
url="http://www.kernel.org/" url="http://www.kernel.org/"
@@ -915,14 +915,10 @@ hackheaders() {
# add xfs and shmem for aufs building # add xfs and shmem for aufs building
mkdir -p "$builddir"/{fs/xfs,mm} mkdir -p "$builddir"/{fs/xfs,mm}
# add resolve_btfids on 5.16 # add resolve_btfids on 5.16+
case $_basever in if [ $_basever -ge 516 ]; then
516) install -Dt "$builddir"/tools/bpf/resolve_btfids tools/bpf/resolve_btfids/resolve_btfids
install -Dt "$builddir"/tools/bpf/resolve_btfids tools/bpf/resolve_btfids/resolve_btfids fi
;;
*)
;;
esac
msg2 "Installing headers..." msg2 "Installing headers..."
cp -t "$builddir" -a include cp -t "$builddir" -a include