[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aEWhwur_W6UwDsx_@example.org>
Date: Sun, 8 Jun 2025 16:44:18 +0200
From: Alexey Gladkov <legion@...nel.org>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: linux-kbuild@...r.kernel.org, Petr Pavlu <petr.pavlu@...e.com>,
Ard Biesheuvel <ardb@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nicolas Schier <nicolas@...sle.eu>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/4] kbuild: generate module.builtin.modinfo from
vmlinux.unstripped instead of vmlinux.o
On Fri, Jun 06, 2025 at 01:10:22PM +0900, Masahiro Yamada wrote:
>
> Currently, modules.builtin.modinfo is generated from vmlinux.o, which
> occurs before modpost. So, we cannot include modpost-processed data
> into modules.builtin.modinfo.
>
> This patch set allows to generate modules.builtin.modinfo from
> vmlinux.unstripped.
>
> I think this patch set will be useful to clean up this:
>
> https://lore.kernel.org/linux-kbuild/cover.1748335606.git.legion@kernel.org/T/#m98813857abf2101bdf67f1b8529a44f5c7f4746d
>
> The original approach generates modules.builtin.modinfo from two files
> and then cancatenates them into a single file.
>
> I prefer generating modules.builtin.modinfo from a single point.
>
> I think 1/4 is a good cleanup regardless of modules.builtin.modinfo
>
>
> Masahiro Yamada (4):
> module: remove meaningless 'name' parameter from __MODULE_INFO()
> kbuild: always create intermediate vmlinux.unstripped
> kbuild: keep .modinfo section in vmlinux.unstripped
> kbuild: extract modules.builtin.modinfo from vmlinux.unstripped
>
> include/asm-generic/vmlinux.lds.h | 2 +-
> include/crypto/algapi.h | 4 +-
> include/linux/module.h | 3 --
> include/linux/moduleparam.h | 9 ++--
> include/net/tcp.h | 4 +-
> scripts/Makefile.vmlinux | 73 +++++++++++++++++++++----------
> scripts/Makefile.vmlinux_o | 26 +----------
> scripts/mksysmap | 3 ++
> 8 files changed, 63 insertions(+), 61 deletions(-)
Hm. It doesn't work for me :(
I haven't been able to figure out what's wrong yet.
make[3]: *** No rule to make target 'vmlinux', needed by 'arch/x86/boot/compressed/../voffset.h'. Stop.
make[2]: *** [arch/x86/boot/Makefile:96: arch/x86/boot/compressed/vmlinux] Error 2
make[1]: *** [arch/x86/Makefile:320: bzImage] Error 2
make: *** [Makefile:248: __sub-make] Error 2
--
Rgrds, legion
Powered by blists - more mailing lists