From 8c330dc7b1619175b069d415ddeb1c3fe308f278 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Tue, 12 Apr 2022 22:31:34 +0200 Subject: [PATCH] Instead of silently ignoring resolve_btfids in case of error, output a warning instead. --- PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index e217885..855a70a 100644 --- a/PKGBUILD +++ b/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..."