diff options
| -rw-r--r-- | meta-efi-secure-boot/recipes-kernel/linux/linux-yocto-efi-secure-boot.inc | 5 |
1 files changed, 4 insertions, 1 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 fae9673..27bb3a2 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 | |||
| @@ -33,7 +33,10 @@ fakeroot python do_sign() { | |||
| 33 | shutil.copyfile(kernel, d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}')) | 33 | shutil.copyfile(kernel, d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}')) |
| 34 | ext = d.expand('${SB_FILE_EXT}') | 34 | ext = d.expand('${SB_FILE_EXT}') |
| 35 | shutil.copyfile(kernel + ext, d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}' + ext)) | 35 | shutil.copyfile(kernel + ext, d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}' + ext)) |
| 36 | os.symlink(type + d.expand('-${KERNEL_RELEASE}' + ext), d.expand('${D}/boot/') + type + ext) | 36 | dst = d.expand('${D}/boot/') + type + ext |
| 37 | if os.path.exists(dst): | ||
| 38 | os.unlink(dst) | ||
| 39 | os.symlink(type + d.expand('-${KERNEL_RELEASE}' + ext), dst) | ||
| 37 | } | 40 | } |
| 38 | 41 | ||
| 39 | # Make sure the kernel image has been signed before kernel_do_deploy() | 42 | # Make sure the kernel image has been signed before kernel_do_deploy() |
