From 33ec1d1f82cc783fc9640d4105795d85f52213f9 Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Wed, 20 Jun 2018 11:31:00 +0800 Subject: linux-yocto-efi-secure-boot: using shutil.copyfile instead of shutil.move to copy kernel p7b file In commit 1c96c0d09614a3a692a8bee201e34694f26c436a, the kernel p7b file is moved from ${B}/${KERNEL_OUTPUT_DIR}/ to ${D}/boot/. But in do_deploy(), it still try to copy p7b file from ${B}/${KERNEL_OUTPUT_DIR}/ to ${DEPLOYDIR}/. Using shutil.copyfile instead of shutil.move to fix this issue. Signed-off-by: Yi Zhao --- .../recipes-kernel/linux/linux-yocto-efi-secure-boot.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-efi-secure-boot') 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 6452bc3..8753b3d 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,7 @@ fakeroot python do_sign() { uks_sel_sign(kernel, d) shutil.copyfile(kernel, d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}')) - shutil.move(kernel + '.p7b', d.expand('${D}/boot/') + type + d.expand('-${KERNEL_RELEASE}.p7b')) + shutil.copyfile(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') } -- cgit v1.2.3-54-g00ecf