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

- From: Nicolas Schier \<nsc@kernel.org\>
- Date: 2025-09-17 11:57:47 
- List: linux-modules
- Page: https://ratatoskr.run/linux-modules/2025/09/3220012
- Thread: https://ratatoskr.run/linux-modules/2025/08/3175296/t.md

```text
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>
```
