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:
12
PKGBUILD
12
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)
|
||||
# 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
|
||||
|
Reference in New Issue
Block a user