]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel.bbclass: also install the bundled kernel to STAGING_KERNEL_DIR
authorChen Qi <Qi.Chen@windriver.com>
Wed, 21 May 2014 08:09:23 +0000 (04:09 -0400)
committerChen Qi <Qi.Chen@windriver.com>
Mon, 16 Jun 2014 10:35:53 +0000 (18:35 +0800)
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

index 6ed1cb73c8824590e6163cfd13ab3689f3c99f89..743b9fb54ea0805274396867b6bec179f63a5e36 100644 (file)
@@ -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
 }