diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-12-25 09:07:23 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-12-25 16:47:32 +0100 |
commit | 8fbafcbda119ea44a75bfd8b29cf8631d5aff80e (patch) | |
tree | 3e56ac9f596a7dd2e38549a1b22bf019997c312f /eclass/kernel-install.eclass | |
parent | dev-java/htmlcleaner: Stabilize 2.29 amd64, #920688 (diff) | |
download | gentoo-8fbafcbda119ea44a75bfd8b29cf8631d5aff80e.tar.gz gentoo-8fbafcbda119ea44a75bfd8b29cf8631d5aff80e.tar.bz2 gentoo-8fbafcbda119ea44a75bfd8b29cf8631d5aff80e.zip |
kernel-{build,install}.eclass: Support XZ module compression
When KERNEL_IUSE_GENERIC_UKI is set (to gatekeep for new ebuilds),
enable XZ module compression in kernel and add IUSE=module-compress.
When the flag is enabled, the modules are installed .xz compressed
per the config. When it is disabled, they are installed uncompressed
but the kernel retains module compression support.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/kernel-install.eclass')
-rw-r--r-- | eclass/kernel-install.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index 9612700a1431..c04a21789a7c 100644 --- a/eclass/kernel-install.eclass +++ b/eclass/kernel-install.eclass @@ -79,7 +79,7 @@ _IDEPEND_BASE=" LICENSE="GPL-2" if [[ ${KERNEL_IUSE_GENERIC_UKI} ]]; then - IUSE+=" generic-uki" + IUSE+=" generic-uki module-compress" # https://github.com/AndrewAmmerlaan/dist-kernel-log-to-licenses # This script can help with generating the array below, keep in mind # that it is not a fully automatic solution, i.e. use flags will @@ -200,6 +200,9 @@ if [[ ${KERNEL_IUSE_GENERIC_UKI} ]]; then generic-uki? ( ${INITRD_PACKAGES[@]} ) " + RDEPEND+=" + sys-apps/kmod[lzma] + " IDEPEND=" generic-uki? ( || ( |