public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: install-extmod-build: Package resolve_btfids if necessary
@ 2026-02-26  7:41 Thomas Weißschuh
  2026-02-26 20:37 ` Nathan Chancellor
  2026-03-05  0:36 ` Nathan Chancellor
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Weißschuh @ 2026-02-26  7:41 UTC (permalink / raw)
  To: Nathan Chancellor, Nicolas Schier
  Cc: linux-kbuild, linux-kernel, bpf, Thomas Weißschuh

When CONFIG_DEBUG_INFO_BTF_MODULES is enabled and vmlinux is available,
Makefilefile.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.

Also package resolve_btfids if it may get used.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
 scripts/package/install-extmod-build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/package/install-extmod-build b/scripts/package/install-extmod-build
index 2576cf7902db..f12e1ffe409e 100755
--- a/scripts/package/install-extmod-build
+++ b/scripts/package/install-extmod-build
@@ -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

---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260226-kbuild-resolve_btfids-ca233983ebbb

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] kbuild: install-extmod-build: Package resolve_btfids if necessary
  2026-02-26  7:41 [PATCH] kbuild: install-extmod-build: Package resolve_btfids if necessary Thomas Weißschuh
@ 2026-02-26 20:37 ` Nathan Chancellor
  2026-02-26 20:47   ` Nicolas Schier
  2026-03-05  0:36 ` Nathan Chancellor
  1 sibling, 1 reply; 4+ messages in thread
From: Nathan Chancellor @ 2026-02-26 20:37 UTC (permalink / raw)
  To: Thomas Weißschuh; +Cc: Nicolas Schier, linux-kbuild, linux-kernel, bpf

On Thu, Feb 26, 2026 at 08:41:48AM +0100, Thomas Weißschuh wrote:
> When CONFIG_DEBUG_INFO_BTF_MODULES is enabled and vmlinux is available,
> Makefilefile.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.

Heh, ironic that I was just looking in that area yesterday and I had
thought that this would be necessary if vmlinux is available but then
never followed up... Thanks for this.

> Also package resolve_btfids if it may get used.
> 
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>

Nicolas, can I take this as a fix?

> ---
>  scripts/package/install-extmod-build | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/scripts/package/install-extmod-build b/scripts/package/install-extmod-build
> index 2576cf7902db..f12e1ffe409e 100755
> --- a/scripts/package/install-extmod-build
> +++ b/scripts/package/install-extmod-build
> @@ -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
> 
> ---
> base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
> change-id: 20260226-kbuild-resolve_btfids-ca233983ebbb
> 
> Best regards,
> -- 
> Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kbuild: install-extmod-build: Package resolve_btfids if necessary
  2026-02-26 20:37 ` Nathan Chancellor
@ 2026-02-26 20:47   ` Nicolas Schier
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Schier @ 2026-02-26 20:47 UTC (permalink / raw)
  To: Nathan Chancellor; +Cc: Thomas Weißschuh, linux-kbuild, linux-kernel, bpf

On Thu, Feb 26, 2026 at 01:37:58PM -0700, Nathan Chancellor wrote:
> On Thu, Feb 26, 2026 at 08:41:48AM +0100, Thomas Weißschuh wrote:
> > When CONFIG_DEBUG_INFO_BTF_MODULES is enabled and vmlinux is available,
> > Makefilefile.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.
> 
> Heh, ironic that I was just looking in that area yesterday and I had
> thought that this would be necessary if vmlinux is available but then
> never followed up... Thanks for this.
> 
> > Also package resolve_btfids if it may get used.
> > 
> > Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
> 
> Nicolas, can I take this as a fix?

yes, please.

Reviewed-by: Nicolas Schier <nsc@kernel.org>

-- 
Nicolas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kbuild: install-extmod-build: Package resolve_btfids if necessary
  2026-02-26  7:41 [PATCH] kbuild: install-extmod-build: Package resolve_btfids if necessary Thomas Weißschuh
  2026-02-26 20:37 ` Nathan Chancellor
@ 2026-03-05  0:36 ` Nathan Chancellor
  1 sibling, 0 replies; 4+ messages in thread
From: Nathan Chancellor @ 2026-03-05  0:36 UTC (permalink / raw)
  To: Nathan Chancellor, Nicolas Schier, Thomas Weißschuh
  Cc: linux-kbuild, linux-kernel, bpf

On Thu, 26 Feb 2026 08:41:48 +0100, Thomas Weißschuh wrote:
> When CONFIG_DEBUG_INFO_BTF_MODULES is enabled and vmlinux is available,
> Makefilefile.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.
> 
> Also package resolve_btfids if it may get used.
> 
> [...]

Applied to

  https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git kbuild-fixes

Thanks!

[1/1] kbuild: install-extmod-build: Package resolve_btfids if necessary
      https://git.kernel.org/kbuild/c/459cb3c054c23

Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped or
reverted. Patches applied to an "unstable" branch are accepted pending
wider testing in -next and any post-commit review; they will generally
be moved to the main branch in a week if no issues are found.

Best regards,
-- 
Nathan Chancellor <nathan@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-05  0:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-26  7:41 [PATCH] kbuild: install-extmod-build: Package resolve_btfids if necessary Thomas Weißschuh
2026-02-26 20:37 ` Nathan Chancellor
2026-02-26 20:47   ` Nicolas Schier
2026-03-05  0:36 ` Nathan Chancellor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox