Skip to content

Commit 459cb3c

Browse files
t-8chnathanchance
authored andcommitted
kbuild: install-extmod-build: Package resolve_btfids if necessary
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>
1 parent d2395bb commit 459cb3c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/package/install-extmod-build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ mkdir -p "${destdir}"
3232
echo tools/objtool/objtool
3333
fi
3434

35+
if is_enabled CONFIG_DEBUG_INFO_BTF_MODULES; then
36+
echo tools/bpf/resolve_btfids/resolve_btfids
37+
fi
38+
3539
echo Module.symvers
3640
echo "arch/${SRCARCH}/include/generated"
3741
echo include/config/auto.conf

0 commit comments

Comments
 (0)