Re: [PATCH v5 14/14] kbuild: make CONFIG_MODULE_HASHES compatible with module stripping
From: Nicolas Schier
Date: Tue Aug 04 2026 - 08:53:33 EST
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 <linux@xxxxxxxxxxxxxx>
> ---
> .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 <nsc@xxxxxxxxxx>
--
Nicolas