From 1c96c0d09614a3a692a8bee201e34694f26c436a Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Sat, 5 May 2018 11:09:50 -0400 Subject: linux-yocto-efi-secure-boot: Package unversioned signature as symlink To match the usual user experience of having /boot/${KERNEL_IMAGETYPE} exist as a symlink to the real kernrel, also have our signature file exist for that as a symlink and include it in the package file. Signed-off-by: Tom Rini --- .../recipes-kernel/linux/linux-yocto-efi-secure-boot.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 62e869d..ae2aeca 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 @@ -31,7 +31,8 @@ fakeroot python do_sign() { uks_sel_sign(kernel, d) shutil.copyfile(kernel, d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}')) - shutil.copyfile(kernel + '.p7b', d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}.p7b')) + shutil.move(kernel + '.p7b', d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}.p7b')) + os.symlink(type + d.expand('-${KERNEL_RELEASE}.p7b'), d.expand('${D}/boot/') + type + '.p7b') } # Make sure the kernel image has been signed before kernel_do_deploy() @@ -99,4 +100,5 @@ python do_package_prepend() { for type in d.expand('${KERNEL_IMAGETYPES}').split(): typelower = type.lower() d.appendVar('FILES_kernel-image-' + typelower, ' /boot/' + type + d.expand('-${KERNEL_VERSION_NAME}.p7b')) + d.appendVar('FILES_kernel-image-' + typelower, ' /boot/' + type + '.p7b') } -- cgit v1.2.3-54-g00ecf