Nowa Ammerlaan 7787a9bacb kernel-build.eclass: compress modules after building generic-uki
For gentoo-kernel-bin we build the gpkg with module-compression
disabled because compressing the initramfs or gpkg is less efficient
if the modules are already pre-compressed.

This however does not fix that problem for custom builds of the
generic-uki where the end goal is still to have compressed modules.
In that case we want compressed modules on the root fs but not in the
generic initrd/uki we built.

Resolve this problem by unconditionally disabling the automatic
compression of 'make modules_install' and using instead the
kernel-install_compress_modules() function from kernel-install.eclass

This has the nice side-effect of slightly simplifying the eclass and
more closely aligning the code path of gentoo-kernel-bin and
gentoo-kernel. In the future when all kernel ebuilds support
USE=generic-uki we can simplify this even further.

CONFIG_MODULE_COMPRESS_ALL is one of those options that does not
actually change anything in the kernel itself, it just toggles what the
kernel build system, and specifically make modules_install does (the
same holds for CONFIG_MODULE_COMPRESS_{GZIP,XZ,ZSTD} as well).
Therefore we can safely disable this and instead call the compressor
manually later (with the same options that make modules_install would
have called it with).

We already do precisely this in sys-kernel/gentoo-kernel-bin, we build
the gpkg with support for module compression enabled
(CONFIG_MODULE_COMPRESS=y), but without actually compressing the
modules (USE=-modules-compress and therefore
(using kernel-install_compress_modules()) then compresses the modules in
the gpkg we built depending on USE=modules-compress.

Essentially this change makes sys-kernel/gentoo-kernel do the same
thing that sys-kernel/gentoo-kernel-bin is already doing.

Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/45640
2026-02-05 09:08:49 +01:00
2026-01-23 09:35:14 +02:00
2026-02-04 13:33:12 +00:00
2026-02-04 14:31:27 +01:00
2026-02-04 20:06:17 +01:00
2026-02-04 14:31:24 +01:00
2026-01-26 18:58:39 -05:00
2026-01-19 17:19:06 -08:00
2026-02-02 18:41:07 +07:00
2026-02-04 20:41:05 +01:00
2025-12-31 00:09:05 +01:00
2026-02-04 22:50:22 +00:00
2026-02-02 06:48:45 +00:00
2026-01-08 09:43:43 -05:00
2026-01-25 21:36:13 +02:00
2026-01-20 07:58:59 +02:00
2026-02-03 23:38:50 +01:00
2026-01-28 23:53:58 +01:00
2026-01-26 07:20:02 +00:00
2026-01-30 11:31:29 +02:00
2026-02-04 11:57:46 -06:00
2026-01-28 09:19:52 +02:00
2026-02-04 01:47:07 +00:00
2026-02-05 08:21:12 +01:00
2026-02-04 12:14:35 -05:00
2026-01-28 21:43:52 +01:00
…
S
Description
No description provided
9.8 GiB
Languages
Shell 97.9%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%