Nowa Ammerlaan c3a527ae22 eclass/{dist-,}kernel{-utils,-build}.eclass: fix compression for >=6.12
Upstream commit [1] introduces several changes to the way module compression is
configured. To summarize:
- CONFIG_MODULE_COMPRESS_NONE is renamed to CONFIG_MODULE_COMPRESS and moved up,
	this (and CONFIG_MODULE_COMPRESS_<type>) control support for module
	compression.
- A new switch CONFIG_MODULE_COMPRESS_ALL is introduced to control whether the
	modules are actually compressed when running make modules_install.

This change introduced several problems that are fixed here:
- CONFIG_MODULE_COMPRESS is not implicitly enabled by setting
	CONFIG_MODULE_COMPRESS_XZ=y in the same way that CONFIG_MODULE_COMPRESS_NONE
	was previously implicitly disabled by enabling the xz compression. Fixed by
	explicitly enabling these options.
- The dist-kernel_get_module_suffix() function did not recognize the renamed
	option which caused the 'compressor not known' error in some configurations.
	Fixed by adding another condition to the elif statement in this function.

Furthermore, we now also set the switch CONFIG_MODULE_COMPRESS_ALL based on the
state of the "modules-compress" USE flag. This technically makes the "suffix-y"
override unnecessary for the >=6.12 kernels, but it does no harm so let's keep
that as it is and not add a new version conditional here.

[1] https://github.com/torvalds/linux/commit/c7ff693fa2094ba0a9d0a20feb4ab1658eff9c33

Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/39609
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
2024-12-06 12:31:14 +01:00
2024-12-04 23:14:33 +00:00
2024-12-06 10:54:23 +00:00
2024-12-05 13:00:24 +01:00
2024-12-06 10:26:42 +01:00
2024-12-06 16:15:11 +07:00
2024-12-02 14:47:58 +00:00
2024-12-05 13:00:28 +01:00
2024-12-01 11:46:21 +00:00
2024-11-04 11:13:47 -05:00
2024-11-09 16:25:41 +10:00
2024-12-04 19:26:40 +01:00
2024-12-05 07:34:44 +01:00
2024-12-06 10:26:42 +01:00
2024-12-06 09:04:01 +01:00
2024-12-04 19:26:17 +01:00
2024-12-04 19:26:17 +01:00
2024-12-01 18:06:17 -08:00
2024-12-01 12:57:37 +00:00
2024-12-03 11:13:57 +00:00
2024-11-25 23:39:17 -05:00
S
Description
No description provided
9.8 GiB
Languages
Shell 97.9%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%