remove unused check

This commit is contained in:
jbouchard
2021-05-04 10:56:49 -04:00
committed by Jia Zhang
parent 1c807f94af
commit fa43d5885d

View File

@@ -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