commit: d5fa80c9a5370775832e0d0931734bb1fc9bbe98 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Sat Dec 24 18:07:34 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Dec 24 20:13:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5fa80c9
kernel-build.eclass: drop EAPI 7 support Signed-off-by: David Seifert <soap <AT> gentoo.org> Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/kernel-build.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index c8802b39fa8c..da215a055a46 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -6,7 +6,7 @@ # Distribution Kernel Project <[email protected]> # @AUTHOR: # Michał Górny <[email protected]> -# @SUPPORTED_EAPIS: 7 8 +# @SUPPORTED_EAPIS: 8 # @PROVIDES: kernel-install # @BLURB: Build mechanics for Distribution Kernels # @DESCRIPTION: @@ -20,13 +20,14 @@ # the kernel and installing it along with its modules and subset # of sources needed to build external modules. -if [[ ! ${_KERNEL_BUILD_ECLASS} ]]; then - case ${EAPI} in - 7|8) ;; + 8) ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac +if [[ ! ${_KERNEL_BUILD_ECLASS} ]]; then +_KERNEL_BUILD_ECLASS=1 + PYTHON_COMPAT=( python3_{8..11} ) inherit multiprocessing python-any-r1 savedconfig toolchain-funcs kernel-install @@ -281,7 +282,6 @@ kernel-build_merge_configs() { .config "${@}" "${user_configs[@]}" || die } -_KERNEL_BUILD_ECLASS=1 fi EXPORT_FUNCTIONS src_configure src_compile src_test src_install pkg_postinst
