From acbdd65ca9b57f0c25fa98a0b304aadfdda08dd2 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 19 Feb 2024 07:13:59 +0000 Subject: [PATCH] eclass/kernel-2: Sync with Gentoo It's from Gentoo commit c28bd3b90e19fa157e19d017e70fc5c4832de14d. --- .../third_party/portage-stable/eclass/kernel-2.eclass | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/kernel-2.eclass b/sdk_container/src/third_party/portage-stable/eclass/kernel-2.eclass index a0574e0767..ffbe986f3e 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/kernel-2.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/kernel-2.eclass @@ -288,7 +288,7 @@ # Moved this above inherit as crossdev.eclass uses CHOST internally. [[ ${PROFILE_ARCH} == ppc64 ]] && CHOST="powerpc64-${CHOST#*-}" -inherit crossdev estack multiprocessing toolchain-funcs +inherit crossdev estack multiprocessing optfeature toolchain-funcs case ${EAPI} in 7|8) ;; @@ -656,9 +656,9 @@ if [[ ${ETYPE} == sources ]]; then app-alternatives/cpio dev-lang/perl app-alternatives/bc - app-alternatives/yacc - app-alternatives/lex dev-build/make + sys-devel/bison + sys-devel/flex >=sys-libs/ncurses-5.2 virtual/libelf virtual/pkgconfig @@ -992,6 +992,9 @@ postinst_sources() { fi fi fi + + optfeature "versioned kernel image installation and optionally automating tasks such as generating an initramfs or unified kernel image" \ + "sys-kernel/installkernel" } # pkg_setup functions