diff options
author | David Seifert <soap@gentoo.org> | 2022-12-24 19:07:34 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-12-24 21:13:49 +0100 |
commit | cafa530610ec9fd0522273c64975b2b7a2cbf823 (patch) | |
tree | 98eeeb29c3ecbf333701fef0f7c3a568b2caf27c /eclass/kernel-install.eclass | |
parent | kernel-build.eclass: drop EAPI 7 support (diff) | |
download | gentoo-cafa530610ec9fd0522273c64975b2b7a2cbf823.tar.gz gentoo-cafa530610ec9fd0522273c64975b2b7a2cbf823.tar.bz2 gentoo-cafa530610ec9fd0522273c64975b2b7a2cbf823.zip |
kernel-install.eclass: drop EAPI 7 support
Signed-off-by: David Seifert <soap@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/kernel-install.eclass')
-rw-r--r-- | eclass/kernel-install.eclass | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index fba65a76ccce..49aff35dea0d 100644 --- a/eclass/kernel-install.eclass +++ b/eclass/kernel-install.eclass @@ -6,7 +6,7 @@ # Distribution Kernel Project <dist-kernel@gentoo.org> # @AUTHOR: # Michał Górny <mgorny@gentoo.org> -# @SUPPORTED_EAPIS: 7 8 +# @SUPPORTED_EAPIS: 8 # @PROVIDES: dist-kernel-utils # @BLURB: Installation mechanics for Distribution Kernels # @DESCRIPTION: @@ -29,9 +29,10 @@ # kernel-build.eclass obtains it from kernel config. if [[ ! ${_KERNEL_INSTALL_ECLASS} ]]; then +_KERNEL_INSTALL_ECLASS=1 case ${EAPI} in - 7|8) ;; + 8) ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac @@ -46,17 +47,12 @@ RESTRICT+=" " # note: we need installkernel with initramfs support! -_INSTALL_DEPEND=" +IDEPEND=" || ( sys-kernel/installkernel-gentoo sys-kernel/installkernel-systemd-boot ) initramfs? ( >=sys-kernel/dracut-049-r3 )" -if [[ ${EAPI} == 7 ]]; then - RDEPEND="${_INSTALL_DEPEND}" -else - IDEPEND="${_INSTALL_DEPEND}" -fi # needed by objtool that is installed along with the kernel and used # to build external modules # NB: linux-mod.eclass also adds this dep but it's cleaner to have @@ -533,7 +529,6 @@ kernel-install_pkg_config() { kernel-install_install_all "${PV}${KV_LOCALVERSION}" } -_KERNEL_INSTALL_ECLASS=1 fi EXPORT_FUNCTIONS src_test pkg_preinst pkg_postinst pkg_prerm pkg_postrm |