summaryrefslogtreecommitdiff
path: root/dev-python/python-tests/python-tests-3.14.3.ebuild
diff options
context:
space:
mode:
authorNowa Ammerlaan <nowa@gentoo.org>2026-02-04 15:37:25 +0100
committerNowa Ammerlaan <nowa@gentoo.org>2026-02-05 09:08:49 +0100
commit7787a9bacbabdee07717f2af227d037f745b77bb (patch)
tree8ccc73ba01765b11f3ababea57761fc3193672b4 /dev-python/python-tests/python-tests-3.14.3.ebuild
parenta15cb664fed21d349f9b36d1d2fc7ce91fceb5e2 (diff)
downloadgentoo-7787a9bacbabdee07717f2af227d037f745b77bb.tar.gz
gentoo-7787a9bacbabdee07717f2af227d037f745b77bb.tar.bz2
gentoo-7787a9bacbabdee07717f2af227d037f745b77bb.zip
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
Diffstat (limited to 'dev-python/python-tests/python-tests-3.14.3.ebuild')
0 files changed, 0 insertions, 0 deletions