[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241102120533.1592277-1-admin@ptr1337.dev>
Date: Sat, 2 Nov 2024 13:05:26 +0100
From: Peter Jung <admin@...1337.dev>
To:
Cc: jose.fernandez@...ux.dev,
Peter Jung <admin@...1337.dev>,
Thomas Weißschuh <linux@...ssschuh.net>,
Christian Heusel <christian@...sel.eu>,
Nathan Chancellor <nathan@...nel.org>,
Masahiro Yamada <masahiroy@...nel.org>,
Nicolas Schier <nicolas@...sle.eu>,
linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org,
bpf@...r.kernel.org
Subject: [PATCH] kbuild: add resolve_btfids to pacman PKGBUILD
If the config is using DEBUG_INFO_BTF, it is required to,
package resolve_btfids with.
Compiling dkms modules will fail otherwise.
Add a check, if resolve_btfids is present and then package it, if required.
Signed-off-by: Peter Jung <admin@...1337.dev>
---
scripts/package/PKGBUILD | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/package/PKGBUILD b/scripts/package/PKGBUILD
index f83493838cf9..4010899652b8 100644
--- a/scripts/package/PKGBUILD
+++ b/scripts/package/PKGBUILD
@@ -91,6 +91,11 @@ _package-headers() {
"${srctree}/scripts/package/install-extmod-build" "${builddir}"
fi
+ # required when DEBUG_INFO_BTF_MODULES is enabled
+ if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then
+ install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
+ fi
+
echo "Installing System.map and config..."
mkdir -p "${builddir}"
cp System.map "${builddir}/System.map"
--
2.47.0
Powered by blists - more mailing lists