Instead of silently ignoring resolve_btfids in case of error, output a warning instead.

This commit is contained in:
Tk-Glitch
2022-04-12 22:31:34 +02:00
parent e2572a00ea
commit 8c330dc7b1

View File

@@ -59,7 +59,7 @@ else
fi
pkgname=("${pkgbase}" "${pkgbase}-headers")
pkgver="${_basekernel}"."${_sub}"
pkgrel=255
pkgrel=256
pkgdesc='Linux-tkg'
arch=('x86_64') # no i686 in here
url="http://www.kernel.org/"
@@ -932,7 +932,7 @@ hackheaders() {
# add resolve_btfids on 5.16+
if [ $_basever -ge 516 ]; then
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 || ( warning "$builddir/tools/bpf/resolve_btfids was not found. This is undesirable and might break dkms modules !!! Please review your config changes and consider using the provided defconfig and tweaks without further modification." && read -rp "Press enter to continue anyway" )
fi
msg2 "Installing headers..."