diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2022-03-10 18:12:32 +0800 |
---|---|---|
committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2022-03-15 10:02:19 +0800 |
commit | 5d274050c7e188dfe222020bce7af58e8a5170e7 (patch) | |
tree | 34760bc04f153a708f3a1211f7abd030f2e04016 /meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc | |
parent | c2029ebb5a3c7bc2e0ef56955431c8e8467601cf (diff) | |
download | meta-secure-core-master.tar.gz |
Use variable GRUB_SECURE_BUILDIN to split grub secure
builtin option from GRUB_BUILDIN, then GRUB_BUILDIN will
not contain secure option for others grub-mkimage to
create no secure grub even though secure boot is enabled
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Diffstat (limited to 'meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc')
-rw-r--r-- | meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc b/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc index a122fdc..7d9745d 100644 --- a/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc +++ b/meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc | |||
@@ -48,7 +48,8 @@ GRUB_SIGNING_MODULES += "${@'pgp gcry_rsa gcry_sha256 gcry_sha512 --pubkey %s ' | |||
48 | 48 | ||
49 | GRUB_SELOADER_MODULES += "${@'mok2verify ' if d.getVar('UEFI_SELOADER', True) == '1' else ''}" | 49 | GRUB_SELOADER_MODULES += "${@'mok2verify ' if d.getVar('UEFI_SELOADER', True) == '1' else ''}" |
50 | 50 | ||
51 | GRUB_BUILDIN:append:class-target = " \ | 51 | GRUB_SECURE_BUILDIN ??= "" |
52 | GRUB_SECURE_BUILDIN:append:class-target = " \ | ||
52 | tftp reboot chain \ | 53 | tftp reboot chain \ |
53 | ${GRUB_SECURE_BOOT_MODULES} \ | 54 | ${GRUB_SECURE_BOOT_MODULES} \ |
54 | ${GRUB_SIGNING_MODULES} \ | 55 | ${GRUB_SIGNING_MODULES} \ |
@@ -134,7 +135,7 @@ do_install:append:class-target() { | |||
134 | install -d "${D}${EFI_BOOT_PATH}/${GRUB_TARGET}-efi" | 135 | install -d "${D}${EFI_BOOT_PATH}/${GRUB_TARGET}-efi" |
135 | grub-mkimage -c ../cfg -p "${GRUB_PREFIX_DIR}" -d "./grub-core" \ | 136 | grub-mkimage -c ../cfg -p "${GRUB_PREFIX_DIR}" -d "./grub-core" \ |
136 | -O "${GRUB_TARGET}-efi" -o "${B}/${GRUB_IMAGE}" \ | 137 | -O "${GRUB_TARGET}-efi" -o "${B}/${GRUB_IMAGE}" \ |
137 | ${GRUB_BUILDIN} | 138 | ${GRUB_BUILDIN} ${GRUB_SECURE_BUILDIN} |
138 | 139 | ||
139 | install -m 0644 "${B}/${GRUB_IMAGE}" "${D}${EFI_BOOT_PATH}/${GRUB_IMAGE}" | 140 | install -m 0644 "${B}/${GRUB_IMAGE}" "${D}${EFI_BOOT_PATH}/${GRUB_IMAGE}" |
140 | 141 | ||