Instead of silently ignoring resolve_btfids in case of error, output a warning instead.
This commit is contained in:
4
PKGBUILD
4
PKGBUILD
@@ -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..."
|
||||
|
Reference in New Issue
Block a user