summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-01-31 11:09:57 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-02-02 07:16:16 +0100
commitc28bd3b90e19fa157e19d017e70fc5c4832de14d (patch)
treea1d7ac57b4669cbf5cadb31bf21f9ff6b0b45832 /eclass
parentapp-crypt/sbctl: add installkernel as optfeature (diff)
downloadgentoo-c28bd3b90e19fa157e19d017e70fc5c4832de14d.tar.gz
gentoo-c28bd3b90e19fa157e19d017e70fc5c4832de14d.tar.bz2
gentoo-c28bd3b90e19fa157e19d017e70fc5c4832de14d.zip
kernel-2.eclass: add installkernel as optfeature
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 55b59fd9e90f..ffbe986f3e87 100644
--- a/eclass/kernel-2.eclass
+++ b/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) ;;
@@ -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