summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-efi-secure-boot/recipes-bsp/grub/grub-efi-efi-secure-boot.inc8
1 files changed, 6 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 6d1d284..b2bfdaa 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
@@ -142,6 +142,12 @@ do_install_append_class-target() {
142 rm -f ${D}${EFI_BOOT_PATH}/${GRUB_TARGET}-efi/*.module 142 rm -f ${D}${EFI_BOOT_PATH}/${GRUB_TARGET}-efi/*.module
143} 143}
144 144
145python do_sign_prepend_class-target() {
146 bb.build.exec_func("check_deploy_keys", d)
147 if d.getVar('GRUB_SIGN_VERIFY') == '1':
148 bb.build.exec_func("check_boot_public_key", d)
149}
150
145fakeroot python do_sign_class-target() { 151fakeroot python do_sign_class-target() {
146 image_dir = d.getVar('D', True) 152 image_dir = d.getVar('D', True)
147 efi_boot_path = d.getVar('EFI_BOOT_PATH', True) 153 efi_boot_path = d.getVar('EFI_BOOT_PATH', True)
@@ -160,8 +166,6 @@ fakeroot python do_sign_class-target() {
160python do_sign() { 166python do_sign() {
161} 167}
162addtask sign after do_install before do_deploy do_package 168addtask sign after do_install before do_deploy do_package
163do_sign[prefuncs] += "check_deploy_keys"
164do_sign[prefuncs] += "${@'check_boot_public_key' if d.getVar('GRUB_SIGN_VERIFY', True) == '1' else ''}"
165 169
166fakeroot do_chownboot() { 170fakeroot do_chownboot() {
167 chown root:root -R "${D}${EFI_BOOT_PATH}/grub.cfg${SB_FILE_EXT}" 171 chown root:root -R "${D}${EFI_BOOT_PATH}/grub.cfg${SB_FILE_EXT}"