diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-09-03 20:19:37 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-09-04 15:14:16 +0200 |
commit | f51bb35a3d1ea823b04d92c0c4492a38225eb75d (patch) | |
tree | d986abbfd9c2615e620da62bbdc8d3939f2f50eb /eclass | |
parent | dist-kernel-utils.eclass: introduce KERNEL_EFI_ZBOOT (diff) | |
download | gentoo-f51bb35a3d1ea823b04d92c0c4492a38225eb75d.tar.gz gentoo-f51bb35a3d1ea823b04d92c0c4492a38225eb75d.tar.bz2 gentoo-f51bb35a3d1ea823b04d92c0c4492a38225eb75d.zip |
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@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-build.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
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 |