]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kbuild: install-extmod-build: Package resolve_btfids if necessary
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 26 Feb 2026 07:41:48 +0000 (08:41 +0100)
committerNathan Chancellor <nathan@kernel.org>
Thu, 26 Feb 2026 21:49:34 +0000 (14:49 -0700)
When CONFIG_DEBUG_INFO_BTF_MODULES is enabled and vmlinux is available,
Makefile.modfinal and gen-btf.sh will try to use resolve_btfids on the
module .ko. install-extmod-build currently does not package
resolve_btfids, so that step fails.

Package resolve_btfids if it may be used.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20260226-kbuild-resolve_btfids-v1-1-2bf38b93dfe7@linutronix.de
[nathan: Small commit message tweaks]
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
scripts/package/install-extmod-build

index 2576cf7902dbbfcd82ea690aac1b2a246b3a6a30..f12e1ffe409eb0ec76da20e82427ba798a2606af 100755 (executable)
@@ -32,6 +32,10 @@ mkdir -p "${destdir}"
                echo tools/objtool/objtool
        fi
 
+       if is_enabled CONFIG_DEBUG_INFO_BTF_MODULES; then
+               echo tools/bpf/resolve_btfids/resolve_btfids
+       fi
+
        echo Module.symvers
        echo "arch/${SRCARCH}/include/generated"
        echo include/config/auto.conf