From fa43d5885dae3917466532414f577c9e84a7aabc Mon Sep 17 00:00:00 2001 From: jbouchard Date: Tue, 4 May 2021 10:56:49 -0400 Subject: [PATCH] remove unused check --- .../recipes-kernel/linux/linux-yocto-efi-secure-boot.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/meta-efi-secure-boot/recipes-kernel/linux/linux-yocto-efi-secure-boot.inc b/meta-efi-secure-boot/recipes-kernel/linux/linux-yocto-efi-secure-boot.inc index d83619a..2508c1e 100644 --- a/meta-efi-secure-boot/recipes-kernel/linux/linux-yocto-efi-secure-boot.inc +++ b/meta-efi-secure-boot/recipes-kernel/linux/linux-yocto-efi-secure-boot.inc @@ -34,7 +34,6 @@ fakeroot python do_sign() { # disallowing chainloader to kernel efi-stub. uks_bl_sign(kernel, d) - #if d.getVar('GRUB_SIGN_VERIFY', True) == "1": shutil.copyfile(kernel, d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}')) ext = d.expand('${SB_FILE_EXT}') @@ -76,10 +75,9 @@ fakeroot python do_sign_bundled_kernel() { # disallowing chainloader to kernel efi-stub. uks_bl_sign(kernel, d) - if d.getVar('GRUB_SIGN_VERIFY', True) == "1": - shutil.copyfile(kernel, d.expand('${D}/boot/') + type + d.expand('-initramfs-${MACHINE}.bin')) - ext = d.expand('${SB_FILE_EXT}') - shutil.copyfile(kernel + ext, d.expand('${D}/boot/') + type + d.expand('-initramfs-${MACHINE}.bin' + ext)) + shutil.copyfile(kernel, d.expand('${D}/boot/') + type + d.expand('-initramfs-${MACHINE}.bin')) + ext = d.expand('${SB_FILE_EXT}') + shutil.copyfile(kernel + ext, d.expand('${D}/boot/') + type + d.expand('-initramfs-${MACHINE}.bin' + ext)) } addtask sign_bundled_kernel after do_bundle_initramfs before do_deploy