Re: [PATCH v7 4/8] kbuild: extract modules.builtin.modinfo from vmlinux.unstripped

Nicolas Schier
2025-09-17T11:57:47Z

On Mon, Aug 18, 2025 at 06:54:58PM +0200, Alexey Gladkov wrote:
> From: Masahiro Yamada <masahiroy@kernel.org>
>
> Currently, we assume all the data for modules.builtin.modinfo are
> available in vmlinux.o.
>
> This makes it impossible for modpost, which is invoked after vmlinux.o,
> to add additional module info.
>
> This commit moves the modules.builtin.modinfo rule after modpost.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> Signed-off-by: Alexey Gladkov <legion@kernel.org>
> ---
> scripts/Makefile.vmlinux | 26 ++++++++++++++++++++++++++
> scripts/Makefile.vmlinux_o | 26 +-------------------------
> 2 files changed, 27 insertions(+), 25 deletions(-)
>

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