From 01aa246e499fd002f25ac20932d078150bf7dd70 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Tue, 30 Nov 2021 14:26:37 +0100 Subject: [PATCH] linux516-tkg: Add resolve_btfids to fix module compilation on 5.16 rc3 --- PKGBUILD | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index de58663..48e5bea 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -855,6 +855,15 @@ hackheaders() { # add xfs and shmem for aufs building mkdir -p "$builddir"/{fs/xfs,mm} + # add resolve_btfids on 5.16 + case $_basever in + 516) + ;; + *) + install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids + ;; + esac + msg2 "Installing headers..." cp -t "$builddir" -a include cp -t "$builddir/arch/x86" -a arch/x86/include