diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-30 17:41:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-30 17:41:14 +0000 |
commit | 35e3ee5faf74dc69409f957f81a6848d4d24c49f (patch) | |
tree | d6bc6dbf01adb34336a16db816df491d45013f2d /eclass/kernel-install.eclass | |
parent | ab3caa4e3adb16caadd7e9e1d9f606b34f20d2b3 (diff) |
gentoo auto-resync : 30:12:2023 - 17:41:14
Diffstat (limited to 'eclass/kernel-install.eclass')
-rw-r--r-- | eclass/kernel-install.eclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index 8c4d5c14fc03..b4c3d5fe7b4d 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 module-compress" + IUSE+=" generic-uki modules-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 @@ -592,6 +592,7 @@ kernel-install_pkg_preinst() { die "Release file ${relfile} not installed!" local release release="$(<"${relfile}")" || die + DIST_KERNEL_RELEASE="${release}" # perform the version check for release ebuilds only if [[ ${PV} != *9999 ]]; then @@ -706,6 +707,8 @@ kernel-install_pkg_postinst() { local dir_ver=${PV}${KV_LOCALVERSION} kernel-install_update_symlink "${EROOT}/usr/src/linux" "${dir_ver}" + dist-kernel_compressed_module_cleanup \ + "${EROOT}/lib/modules/${DIST_KERNEL_RELEASE}" if [[ -z ${ROOT} ]]; then kernel-install_install_all "${dir_ver}" @@ -762,11 +765,11 @@ kernel-install_pkg_config() { # @FUNCTION: kernel-install_compress_modules # @DESCRIPTION: -# Compress modules installed in ED, if USE=module-compress is enabled. +# Compress modules installed in ED, if USE=modules-compress is enabled. kernel-install_compress_modules() { debug-print-function ${FUNCNAME} "${@}" - if use module-compress; then + if use modules-compress; then einfo "Compressing kernel modules ..." # taken from scripts/Makefile.modinst find "${ED}/lib" -name '*.ko' -exec \ |