commit: f51bb35a3d1ea823b04d92c0c4492a38225eb75d Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> AuthorDate: Sun Sep 3 18:19:37 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Sep 4 13:14:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f51bb35a
kernel-build.eclass: set KERNEL_EFI_ZBOOT if enabled in .config With this changes we now also support enabling CONFIG_EFI_ZBOOT in user /etc/kernel/config.d settings. Closes: https://bugs.gentoo.org/897684 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/kernel-build.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index 0c40e8033fe2..0618d495f343 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -461,6 +461,12 @@ kernel-build_merge_configs() { ./scripts/kconfig/merge_config.sh -m -r \ .config "${merge_configs[@]}" || die + + # If this is set by USE=secureboot or user config this will have an effect + # 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 + fi } fi