Patchwork [5/9] kernel.bbclass: also install the bundled kernel to STAGING_KERNEL_DIR

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date June 16, 2014, 10:46 a.m.
Message ID <2510b3cf5064a0ac283e4138aef31f63a4555f5a.1402915083.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/73855/
State New
Headers show

Comments

Qi.Chen@windriver.com - June 16, 2014, 10:46 a.m.
Storing the bundled kernel in ${D} would have the risk of getting
deleted by rm_work. It also makes the bundled kernel unavailable to
others until the kernel is deployed. So it's better to also install
the bundled kernel into ${STAGING_KERNEL_DIR} so that others could
use it once do_bundle_initramfs is finished.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/classes/kernel.bbclass |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 6ed1cb7..743b9fb 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -138,6 +138,7 @@  do_bundle_initramfs () {
 		# Update install area
 		echo "There is kernel image bundled with initramfs: ${B}/${KERNEL_OUTPUT}.initramfs"
 		install -m 0644 ${B}/${KERNEL_OUTPUT}.initramfs ${D}/boot/${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin
+		install -m 0644 ${B}/${KERNEL_OUTPUT}.initramfs ${STAGING_KERNEL_DIR}/${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin
 		echo "${B}/${KERNEL_OUTPUT}.initramfs"
 	fi
 }