diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-05-21 04:09:23 -0400 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2014-06-16 18:35:53 +0800 |
commit | 2510b3cf5064a0ac283e4138aef31f63a4555f5a (patch) | |
tree | 5db7bd1335163a7e328ef5dfbe8bda1d639f1cd6 | |
parent | eee3628e158ce86c73022c5860a2510f32fd1392 (diff) | |
download | openembedded-core-contrib-2510b3cf5064a0ac283e4138aef31f63a4555f5a.tar.gz |
kernel.bbclass: also install the bundled kernel to STAGING_KERNEL_DIR
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>
-rw-r--r-- | meta/classes/kernel.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 6ed1cb73c8..743b9fb54e 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 } |