Signed-off-by: Nowa Ammerlaan <[email protected]>
---
eclass/kernel-build.eclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index 67c074495000..3296f2c6ad75 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -263,6 +263,9 @@ kernel-build_src_configure() {
# on the name of the output image. Set this variable to track this
setting.
if grep -q "CONFIG_EFI_ZBOOT=y" .config; then
KERNEL_EFI_ZBOOT=1
+ elif { use arm64 || use riscv || use loong ;} &&
+ [[ ${KERNEL_IUSE_GENERIC_UKI} ]] && use generic-uki; then
+ die "USE=generic-uki requires enabling CONFIG_EFI_ZBOOT"
fi
mkdir -p "${WORKDIR}"/modprep || die
--
2.50.0