From 0587310124eee63646e565b92130a6499b0b758a Mon Sep 17 00:00:00 2001 From: Michal Koziel Date: Tue, 9 Feb 2016 16:13:17 +0100 Subject: [PATCH] Avoid deleting all zImage* files Building kernel with bundled initramfs is not possible when this recipe deletes all zImage* files. Files to delete from the DEPLOYDIR can now also be controlled from a bbappend file to this recipe by setting KERNEL_REMOVE_DEPLOYED. --- recipes-kernel/linux/linux_3.10.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes-kernel/linux/linux_3.10.bb b/recipes-kernel/linux/linux_3.10.bb index 1df6449..838d067 100644 --- a/recipes-kernel/linux/linux_3.10.bb +++ b/recipes-kernel/linux/linux_3.10.bb @@ -25,6 +25,8 @@ KERNEL_DEVICETREE_usom02 = "socfpga_cyclone5.dtb" DTB_OUTPUT = "arch/arm/boot/dts" +KERNEL_REMOVE_DEPLOYED ?= "${KERNEL_IMAGETYPE} *.dtb" + do_deploy_append() { install -d "${DEPLOYDIR}" install -m 0644 "${B}/${KERNEL_OUTPUT}" "${DEPLOYDIR}" @@ -36,8 +38,7 @@ do_deploy_append() { mv ${KERNEL_DEVICETREE} socfpga.dtb tar czvf "us02-kernel.tar.gz" "${KERNEL_IMAGETYPE}" socfpga.dtb - rm -rf ${KERNEL_IMAGETYPE}* - rm -rf *.dtb + rm -rf ${KERNEL_REMOVE_DEPLOYED} } RDEPENDS_kernel-base = ""