Re: [PATCH v5 14/14] kbuild: make CONFIG_MODULE_HASHES compatible with module stripping
Nicolas Schier <[email protected]> Tue, 4 Aug 2026 14:44:35 +0200
| Newsgroups | gmane.linux.ports.ppc.embedded,gmane.linux.kernel.bpf,gmane.linux.kbuild.devel,gmane.linux.kernel,gmane.linux.kernel.cross-arch,gmane.linux.kernel.modules,gmane.linux.kernel.lsm,gmane.linux.documentation,gmane.linux.debian.devel.kernel |
|---|---|
| Message-ID | <anHeswYHqwvKk3XL@levanger> |
On Tue, May 05, 2026 at 11:05:18AM +0200, Thomas Weißschuh wrote: > CONFIG_MODULE_HASHES needs to process the modules at build time in the > exact form they will be loaded at runtime. If the modules are stripped > afterwards they will not be loadable anymore. > > Also evaluate INSTALL_MOD_STRIP at build time and build the hashes based > on modules stripped this way. > > If users specify inconsistent values of INSTALL_MOD_STRIP between build > and installation time, an error is reported. > > Signed-off-by: Thomas Weißschuh <[email protected]> > --- > .gitignore | 1 + > kernel/module/Kconfig | 5 +++++ > scripts/Makefile.modfinal | 9 +++++++++ > scripts/Makefile.modinst | 4 ++-- > scripts/Makefile.vmlinux | 2 +- > 5 files changed, 18 insertions(+), 3 deletions(-) > For kbuild: Reviewed-by: Nicolas Schier <[email protected]> -- Nicolas