diff options
Diffstat (limited to 'eclass/kernel-build.eclass')
-rw-r--r-- | eclass/kernel-build.eclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index ca105ee1f133..0c40e8033fe2 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -436,6 +436,20 @@ kernel-build_merge_configs() { fi fi + if [[ ${KERNEL_IUSE_SECUREBOOT} ]]; then + if use secureboot; then + # This only effects arm64 and riscv where the bootable image may + # contain its own decompressor (zboot). If enabled we get a + # sign-able efi file. + cat <<-EOF > "${WORKDIR}/secureboot.config" || die + ## Enable zboot for signing + CONFIG_EFI_ZBOOT=y + EOF + + merge_configs+=( "${WORKDIR}/secureboot.config" ) + fi + fi + if [[ ${#user_configs[@]} -gt 0 ]]; then elog "User config files are being applied:" local x |