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
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)
# add resolve_btfids on 5.16+
if [ $_basever -ge 516 ]; then
install -Dt "$builddir"/tools/bpf/resolve_btfids tools/bpf/resolve_btfids/resolve_btfids
;;
*)
;;
esac
fi
msg2 "Installing headers..."
cp -t "$builddir" -a include